# Ports and endpoints

Look up the ports of the Backend and who connects to each of them.

The ports are the defaults. With TLS on, all ports serve TLS only. For the explanation of each port and how to limit access to it, see [Open ports](/security-overview/#open-ports).

#### Variant: Kubernetes cluster

| Port                                                                                                                                                                                 | Protocol              | What uses it                                                                                                                                                                    | Who connects                                                                                                                                                                                                                                                                                        | Open to                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| 443 (entry point (The way in to the Backend from outside the cluster, a load balancer or an Ingress with a DNS name. It usually ends TLS and sends the traffic to the Backend pod.)) | TLS; gRPC over HTTP/2 | Address of Platforma: the entry point sends the requests to port 6345 of the Backend (The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs.) | The clients (the Desktop App (The program that each user installs on their own computer to work with Platforma. It is a client of the Backend.) and pl-cli (The command-line client of Platforma. Administrators use it to manage users and projects on the Backend.)), from the computers of users | As the operator (The person who installs and runs Platforma in your company, for example an IT engineer or a bioinformatician.) chooses: the internet, or only the corporate network |
| 6345                                                                                                                                                                                 | gRPC (HTTP/2)         | API of the Backend. The Service of the Backend has only this port                                                                                                               | The entry point; the health check of the load balancer                                                                                                                                                                                                                                              | Inside the cluster (Service `<release>`). From outside the cluster, only through the entry point                                                                                     |
| 9090                                                                                                                                                                                 | HTTP                  | Metrics and health (`/health`)                                                                                                                                                  | The probes of Kubernetes (A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster.); a metrics collector in the cluster                                                                                                                           | Inside the cluster (Service `<release>-metrics`)                                                                                                                                     |
| 9091                                                                                                                                                                                 | HTTP                  | Debug API                                                                                                                                                                       | A person with access to the pod                                                                                                                                                                                                                                                                     | `localhost` of the pod. With the Helm value `debug: true`, inside the cluster (Service `<release>-debug`)                                                                            |

The primary storage (The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files.) is a bucket: the Desktop App gets the files from the bucket, not from a port of the Backend. Port 6347 is not open in Kubernetes.

#### Variant: Single Server

| Port                        | Protocol      | What uses it                                                                                                                                                                       | Who connects                            | Open to                                     |
| --------------------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | ------------------------------------------- |
| 6345 (`--listen-port`)      | gRPC (HTTP/2) | API of the Backend                                                                                                                                                                 | The clients: the Desktop App and pl-cli | The computers of users                      |
| 6347 (`--listen-http-port`) | HTTP          | Data address: upload and download of the files of the primary storage. Only when the primary storage is a folder on the server: with a bucket, the Backend does not open this port | The Desktop App                         | The computers of users                      |
| 9090                        | HTTP          | Metrics and health (`/health`)                                                                                                                                                     | A metrics collector on the server       | The server only (`127.0.0.1`)               |
| 9091 (`--debug-port`)       | HTTP          | Debug API: the database copy for a backup, performance profiles. Off by default; `--debug-enabled` turns it on                                                                     | A person on the server                  | The server only (`127.0.0.1`, `--debug-ip`) |

The debug API does not ask for a sign-in (To show the Backend who you are, with a sign-in provider or a single-user token. The verb is "sign in"; the noun and the adjective are "sign-in".): keep it on a local address. For the database copy, see [Make a backup now](/maintain-backup-and-restore/#make-a-backup-now).

The Backend, the jobs (One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster.) and the Desktop App also connect to external services. For the hosts, see [Outbound connections](/security-outbound-connections/).

## Next

- [Security overview](/security-overview/)
- [Outbound connections](/security-outbound-connections/)

Source: https://docs.platforma.bio/reference-ports-and-endpoints/
