> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/pam/administration/connectivity/endpoints.md).

# Endpoints

The address and port the console hands to a client when a session opens, and why changing a port here does not move the service that is actually listening.

An **endpoint** is the address and the set of ports the console gives a client when it opens a session: *this is where you dial*. The same component can have several endpoints, because a client inside the data centre and a client on the internet do not reach it at the same address.

{% hint style="danger" %}
**The ports on an endpoint are an announcement, not a listener.** Changing a port here changes only what the client is told to dial. It does not move the service that is actually listening — that is a property of how the component was deployed. Change one without the other and clients are sent to a port where nothing answers.
{% endhint %}

## What this is and when to use it

The solution's components — the core, the terminal connector, the graphical connector, the database connector and the rest — each listen somewhere. An endpoint is the record that says how a client should reach them:

| Endpoint     | Purpose                                                        |
| ------------ | -------------------------------------------------------------- |
| **Default**  | The internal path, between the core and the terminal connector |
| **External** | For clients outside the network                                |
| **Private**  | For a DMZ or a private network                                 |

One endpoint is selected per connection, and **routing rules** decide which, by matching an IP group. The result is handed to the client — written into the downloaded connection file for a native client, or used by the web client directly.

You touch this screen in two situations: when a class of clients reaches the solution at a different address than the default assumes, and when a port has to change because 3389 or 2222 is already taken, or because a firewall standard forbids it.

## Before you start

* Administrator privileges in the console.
* The address each client population actually uses to reach the solution — which is often not the address the appliance knows itself by.
* For a port change, **access to the deployment**. The listening side is not configurable from the console, and the change is not finished until both sides agree.

{% hint style="warning" %}
Treat a port change as a maintenance window. Restarting or recreating the component that listens **cuts live sessions** on that protocol, and a session killed that way can be left recorded as still open.
{% endhint %}

## Steps

To make a class of clients reach the solution at a different address, add or edit the endpoint for that network and give it the host name those clients resolve, then add a routing rule that selects it for the matching IP group.

To change a **port**, both sides have to move, in this order:

1. **Change the listener first.** The port the component actually publishes is fixed by its deployment. Updating it is a deployment task — it belongs with whoever installed the platform, not with the console operator.
2. **Then change the announcement** on the endpoint, so clients are told the new port.
3. **Re-test with a real session.** Nothing else proves the two halves now agree.

{% hint style="info" %}
Databases behave slightly differently: each database connector has its own service endpoint, and the port is part of how a database session is routed. Some database platforms therefore have no editable port at all, because the port itself is the routing key.
{% endhint %}

## What you should see

Endpoints are listed per component, alongside the component's own state:

| Field              | Meaning                                                                                 |
| ------------------ | --------------------------------------------------------------------------------------- |
| **Name**           | The component's unique identifier                                                       |
| **Type**           | What it is — core, terminal, graphical, database, virtual application, video processing |
| **Status**         | *Online*, *Offline*, or an error state                                                  |
| **Last heartbeat** | When it last reported in                                                                |
| **Version**        | The build it is running                                                                 |
| **Endpoints**      | The connection addresses defined for it, per network                                    |

A component that is *Offline* has no working endpoint regardless of what the endpoint record says.

## How to verify it worked

Reading the endpoint record back tells you nothing — it will show whatever you typed. Verify against a session.

1. **Open a real session** on the protocol you changed, as a user from the client population the endpoint is meant for. Not from the console host, and not from your own network if that is a different network.
2. **Read the address the client was given.** For a native client, the downloaded connection file carries the host and port; for the web client, the session simply connects or it does not. Confirm it is the address and port you intended.
3. **Confirm something is listening there.** If the client is sent to the right place and the connection is still refused, the announcement moved and the listener did not.
4. **Test each client population separately.** An internal client and an external client can resolve to different endpoints, and fixing one commonly breaks nothing but also proves nothing about the other.

{% hint style="warning" %}
A local port redirection does not show up in a listening-socket listing — it diverts the packet before it reaches a socket. If the port looks unused but traffic arrives anyway, check the host's NAT rules, not its socket table.
{% endhint %}

## Common errors

| Symptom                                                                       | Cause                                                                                    | Fix                                                                                                         |
| ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| The client opens and immediately fails to connect, on a port you just changed | New announcement, old listener: the client is being sent to a port where nothing answers | Move the listener to the new port, in the deployment, then retest                                           |
| Clients still reach the old port after the deployment was changed             | New listener, old announcement: the connection string still carries the previous port    | Update the endpoint so the announcement matches                                                             |
| Some clients connect and others cannot                                        | They resolve to different endpoints, and only one is correct                             | Check which endpoint each population actually gets before changing ports                                    |
| A client is given an unroutable internal address                              | The default endpoint is being used for clients outside the network                       | Define the external endpoint and a routing rule that selects it for those addresses                         |
| The port change was reverted after a reinstall or an upgrade                  | The installer re-applies the deployment's own port and rewrites the announcement with it | Record any non-default port as part of the installation parameters for that machine, so a re-run keeps it   |
| The port appears unused, but connections still arrive on it                   | A local redirection is diverting traffic before the socket                               | Inspect the host's NAT rules rather than its listening sockets                                              |
| Sessions were cut and one shows as still open                                 | The listening component was restarted or recreated with live sessions on it              | Do port changes in a maintenance window; a session left open this way has to be closed out administratively |

## Field reference

| Item                      | What it is                                                                                                       |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| **Default** endpoint      | The internal path, between the core and the terminal connector                                                   |
| **External** endpoint     | The address used by clients outside the network                                                                  |
| **Private** endpoint      | The address used from a DMZ or a private network                                                                 |
| **Routing rule**          | Binds an IP group to an endpoint, so one endpoint is selected per connection                                     |
| Port fields               | The port **announced** to the client. Never the port the component listens on                                    |
| Database service endpoint | Each database connector has its own; for some database platforms the port is the routing key and is not editable |

## Related pages

* [Ports and protocols](https://wiki.datadike.com/pam/reference/ports.md) — the ports used to reach *assets*, which are a separate question from these
* [Connection methods](https://wiki.datadike.com/pam/administration/sessions/connection-methods.md) — which clients a user may launch, and therefore which endpoint they will be handed
* [Proxy](https://wiki.datadike.com/pam/administration/connectivity/proxy.md) — reaching assets through a jump machine
* [Broker](https://wiki.datadike.com/pam/administration/connectivity/broker.md) — reverse connectivity, where the path is established outbound instead
* [Core concepts](https://wiki.datadike.com/pam/get-started/core-concepts.md) — how the components, assets and sessions relate
