# How players connect to your server
Players need one thing to join: your server's address. You can hand them the raw IP and port, a free name on one of our domains, or a domain you own.

## Find the address

The address is in two places:

- Under your server's name at the top of the side menu.
- On the **External Access** page, in the **Player connection** card, under **Server address**. Click the copy button next to it.

It looks like `203.0.113.10:31544`: an IP (or host name), a colon, and the port. On a shared IP the port is assigned by the platform, so it is usually not the game's default port. Players must type the whole thing, port included.

The server has to be running for players to get in. If it is stopped, start it from the buttons at the top of the server page.

## How players type it in

| Game | Where | What to type |
| --- | --- | --- |
| Minecraft (Java) | **Multiplayer** → **Add Server** → **Server Address** | The address, for example `203.0.113.10:31544`, or your name, for example `myserver.<domain>` |
| FiveM | <kbd>F8</kbd> console | `connect 203.0.113.10:31544`, or `connect myserver.<domain>` |
| Other games | The game's "direct connect" or "join by IP" box | The address with the port |

## Get a free name instead of an IP

A name is easier to share than numbers, and it keeps working if your server moves to another machine.

1. Open **External Access** and find **Custom domain**.
2. Click **Set up a custom domain**.
3. Under **Choose a subdomain**, type a name: 3 to 32 characters, lowercase `a`–`z`, `0`–`9` and hyphens. The dialog checks it as you type and shows the **Final URL**.
4. Pick one of our domains under **Domain**.
5. Click **Save**.

The name shows **Pending** while the DNS records are created and **Active** when it is ready. DNS changes may take a few minutes to reach every player. Under the name, the card shows exactly what players should type after **Connect:**.

- **Minecraft and FiveM** get an SRV record along with the name, so players type only the name, with no port: `myserver.<domain>` in Minecraft, `connect myserver.<domain>` in FiveM.
- **Other games** do not support SRV records, so players type the name and the port, for example `myserver.<domain>:31544`. The card says so: **This game doesn't support DNS shortcuts, so your players need to include the port number when connecting.**

Each server can have one name. **Rename** replaces it (the old name stops working right away) and **Remove domain** deletes it.

:::note{title="FiveM server browser"}

An SRV record makes `connect <name>` work, but it does not change what the in-game server browser shows. To show your name there, see [Show your custom domain in the FiveM server browser](/fivem/custom-domain-in-server-list).

:::

## Use a domain you own

For Minecraft, FiveM and Factorio, the **External Access** page also has **Bring your own domain**, which points a domain you already own at your server through [Domain Connect](https://www.domainconnect.org):

1. Click **Add domain**.
2. Choose **A subdomain** (for example `play.yourdomain.com`) or **My whole domain** (`yourdomain.com`), then type the domain.
3. The dashboard detects your DNS provider. Click **Continue at your DNS provider** and approve the change there. We never see your DNS credentials.
4. Back on the dashboard, the domain shows **Waiting for approval** and then **Connected**. Click **Recheck** if you approved it a few minutes ago and it still says **Not connected**.

This only works if your DNS provider supports Domain Connect. If it does not (the dashboard says **Couldn't find Domain Connect support for that domain.**), create the records by hand as below.

**Disconnect** only removes the link on our side. We never write to your DNS, so delete the records at your provider yourself if you no longer want them.

## Add an SRV record by hand

If your DNS provider has no Domain Connect, you can still give players a short name on your own domain. The easiest way is to set up a free name first (see above) and point your domain at it.

For **Minecraft**, create this SRV record at your DNS provider so players can type `play.yourdomain.com`:

| Field | Value |
| --- | --- |
| Type | `SRV` |
| Name | `_minecraft._tcp.play` (some providers want the service `_minecraft`, the protocol `_tcp` and the name `play` in separate fields) |
| Priority | `0` |
| Weight | `0` |
| Port | Your server's port, the number after the colon in **Server address** |
| Target | Your free name, for example `myserver.<domain>` |

For **FiveM**, the record is the same with the service `_cfx` and the protocol `_udp`. For other games there is no SRV record: create a `CNAME` from `play.yourdomain.com` to your free name and give players `play.yourdomain.com:<port>`.

:::warning{title="Records you create by hand do not follow your server"}

The free name is kept up to date by the platform, but a port written into your own SRV record is not. If the address on **External Access** ever changes, update the record. If you use Cloudflare, leave the record **DNS only** (grey cloud): game traffic cannot pass through Cloudflare's proxy.

:::

## Frequently asked questions

<details>
  <summary>Players get "connection refused" or time out.</summary>

Check that the server shows as running and that the console says it has finished starting. Then check the address they typed, including the port. A name that was created a few minutes ago may not have reached their DNS yet; the IP and port always work.

</details>

<details>
  <summary>Can players join without typing a port?</summary>

Yes, in Minecraft and FiveM, with a free name or your own domain plus an SRV record. In other games, only on a dedicated IP using the game's default port.

</details>

<details>
  <summary>Bedrock players cannot connect to my Java server.</summary>

Bedrock uses a different protocol and needs a bridge plugin such as Geyser listening on its own UDP port. Open that port first; see [Open ports on your game server](/game-servers/open-ports). Bedrock players then add the server with the IP and that port.

</details>
