Available languages: [Python](https://databento.com/docs/api-live/basics/host-and-port.python.md) · [C++](https://databento.com/docs/api-live/basics/host-and-port.cpp.md) · [Rust](https://databento.com/docs/api-live/basics/host-and-port.rust.md) · [Raw](https://databento.com/docs/api-live/basics/host-and-port.raw.md)

Source: https://databento.com/docs/api-live/basics/host-and-port


### Host and port

The Live API host to connect to depends on the [dataset](https://databento.com/docs/api-live/basics/datasets.md) you'd like to subscribe to.
To get the Live API host for a dataset:
1. Take the dataset ID, e.g. `GLBX.MDP3`, and convert it to lowercase
2. Replace periods with dashes, e.g. `glbx.mdp3` becomes `glbx-mdp3`
3. Append `.lsg.databento.com`

The Live API port is always 13000.

For example, to connect to `GLBX.MDP3`, you'd open a TCP connection with `glbx-mdp3.lsg.databento.com:13000`.

> **Warning**
>
> Please connect to the public DNS hostname and not the resolved IP, as this may change.
