# Connection endpoints

## Default endpoint

The default endpoint for NGS is `tls://connect.ngs.global`.

It is geo-balanced and will route to the closest NGS server.

## Regional endpoints

Regional endpoints are not geo-balanced and will return all NGS servers in the region.

note

Since regional endpoints are not geo-balanced, they will often have higher latencies than using the default endpoint.

| Endpoint                       | Region       |
| ------------------------------ | ------------ |
| `tls://asia.geo.ngs.global`    | Asia-Pacific |
| `tls://eu.geo.ngs.global`      | Europe       |
| `tls://us.geo.ngs.global`      | U.S.         |
| `tls://west.us.geo.ngs.global` | Western U.S. |
| `tls://east.us.geo.ngs.global` | Eastern U.S. |

## Testing latency

Latency to the NATS Servers returned by an endpoint can be tested using the `nats rtt` command. For example, to test latency to the default endpoint run:

```
nats rtt -s tls://connect.ngs.global
```

## WebSockets

WebSocket-based connections are supported as well for any of the above endpoints, using the scheme: `wss://` such as:

```
nats -s wss://eu.geo.ngs.global pub test ''
```
