# How players connect to your server
Players need one thing to join: your server's address, port included. If you own a domain, you can also point it at your server so players get a name instead of numbers.

## 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 **How players join** card. Click **Copy** next to it.

It looks like `203.0.113.10:31544`: an IP (or host name), a colon, and the port. 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**, then **Add Server**, then **Server Address** | The address, for example `203.0.113.10:31544` |
| FiveM | <kbd>F8</kbd> console | `connect 203.0.113.10:31544` |
| Other games | The game's "direct connect" or "join by IP" box | The address with the port |

## Use a domain you own

If you already own a domain, you can give players a name such as `play.yourdomain.com`. You set this up yourself at your domain provider (the company you bought the domain from). The dashboard does not create these records for you.

First, create an `A` record that points the name at your server's IP, the part of the address before the colon:

| Field | Value |
| --- | --- |
| Type | `A` |
| Name | `play` (for `play.yourdomain.com`) |
| Value | Your server's IP, for example `203.0.113.10` |

If the address on **External Access** starts with a host name instead of an IP, create a `CNAME` record to that host name instead.

With only this record, players type the name and the port: `play.yourdomain.com:31544`. For most games that is as far as it goes.

### Join without a port: SRV records for Minecraft and FiveM

Minecraft (Java) and FiveM can read an SRV record, which tells the game which port to use. Then players type only the name. Add this record next to the `A` record:

| Field | Minecraft (Java) | FiveM |
| --- | --- | --- |
| Type | `SRV` | `SRV` |
| Name | `_minecraft._tcp.play` | `_cfx._udp.play` |
| Priority | `0` | `0` |
| Weight | `0` | `0` |
| Port | Your server's port, the number after the colon | Your server's port, the number after the colon |
| Target | The name from your `A` record, for example `play.yourdomain.com` | The name from your `A` record, for example `play.yourdomain.com` |

Some providers want the service (`_minecraft` or `_cfx`), the protocol (`_tcp` or `_udp`) and the name (`play`) in separate fields.

Players then type `play.yourdomain.com` in Minecraft, or `connect play.yourdomain.com` in FiveM. DNS changes can take a few minutes, sometimes longer, to reach every player.

:::warning{title="Records you create yourself do not update by themselves"}

If the address on **External Access** ever changes, update your records at your domain provider. If you use Cloudflare, leave the records **DNS only** (grey cloud): game traffic cannot pass through Cloudflare's proxy.

:::

:::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).

:::

For more about domains, see [Use your own domain](/guides/domains/custom-domains).

## Frequently asked questions

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

Check that the server shows **Running** and that the console says it has finished starting. Then check the address they typed, including the port. A domain record created a few minutes ago may not have reached them yet. The IP and port always work.

</details>

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

Yes, in Minecraft (Java) and FiveM, with your own domain and an SRV record. In other games the port is always part of the address.

</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>
