> For the complete documentation index, see [llms.txt](https://help.form.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.form.io/reference/ports/enterprise-server-ports.md). Agents can also search and read this documentation through its [MCP server](https://help.form.io/~gitbook/mcp).

# Enterprise Server Ports

#### Inbound <a href="#inbound-listening" id="inbound-listening"></a>

| Port   | Protocol                                | Set by                                      | Default | Notes                                                                                                      |
| ------ | --------------------------------------- | ------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------- |
| **80** | HTTP, or HTTPS when `ENABLE_SSL` is set | `PORT`                                      | `80`    | The only port the server opens. `main.js` calls `app.listen(config.port)`. The Dockerfile has `EXPOSE 80`. |
| 3000   | HTTP                                    | `PORT=3000` in the `start:debug` npm script | —       | Local dev only. `docker-compose.yml` also maps host `3000` to container `80`.                              |

* Setting `ENABLE_SSL` serves HTTPS on the same `PORT`; there's no separate 443 listener. To serve 443, set `PORT=443` or put a TLS proxy in front.
* When `PORT` isn't `80`, the port is appended to the generated `host`, `apiHost` and `formioHost` URLs.
* The container runs as a non-root user (`formiouser`, UID 5000).

#### Outbound <a href="#outbound-connections-it-makes" id="outbound-connections-it-makes"></a>

| Port           | Destination                                                         | Set by                                     | Default                                           | Notes                                                                                                                     |
| -------------- | ------------------------------------------------------------------- | ------------------------------------------ | ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| **27017**      | MongoDB                                                             | `MONGO` (or `MONGO_PORT_27017_TCP_PORT`)   | `localhost:27017`, or `mongo:27017` inside Docker | Required.                                                                                                                 |
| **443**        | License server                                                      | `LICENSE_SERVER`                           | `https://license.form.io`                         | License validation and usage reporting.                                                                                   |
| 4005 (typical) | PDF server                                                          | `PDF_SERVER` / `FORMIO_FILES_SERVER`       | none                                              | Takes a full URL, so the port is whatever you set. `http://pdf-server:4005` is a special value, so see Gotchas.           |
| 443            | PDF project                                                         | `FORMIO_PDF_PROJECT`                       | `https://pdf.form.io`                             |                                                                                                                           |
| **587**        | SMTP (SendGrid, Mailgun)                                            | fixed in code                              | `smtp.sendgrid.net:587`, `smtp.mailgun.org:587`   | STARTTLS (`secure: false`).                                                                                               |
| configurable   | Custom SMTP                                                         | project email settings (`email.smtp.port`) | from the project settings                         |                                                                                                                           |
| 4318           | OTLP collector                                                      | `OTEL_EXPORTER_OTLP_*_ENDPOINT`            | `http://localhost:4318` (SDK default)             | Used only when telemetry is enabled. The bootstrap stops the SDK from posting to 4318 for any signal without an endpoint. |
| 443            | Third parties (Dropbox, Fortis, Kickbox, OAuth/SAML IdPs, webhooks) | project settings, `FORTIS_ENDPOINT`        | HTTPS                                             | Depends on which features are configured.                                                                                 |
| any            | `TEMPLATE_SERVICE`, `CRM`                                           | env vars                                   | none                                              | Full URLs.                                                                                                                |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.form.io/reference/ports/enterprise-server-ports.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
