Links that put players straight into your server
Your server’s join code is the ID at the end of its page in the server browser (servers.fivem.net/servers/detail/<code>). Share https://cfx.re/join/<code>, which opens FiveM and connects. In F8 players can type connect cfx.re/join/<code> or connect ip:port. On websites use fivem://connect/cfx.re/join/<code>. The code is tied to the server’s listing and licence key, so keep the same key when you change hosts.
The fewer clicks between “this looks fun” and being in your server, the more players you keep. FiveM supports a short web link, a protocol link that opens the game, and commands for the console. Put the right one on your website, Discord and loading screen.

#All the ways to connect
| Where | Link / command |
|---|---|
| Discord, social media | https://cfx.re/join/abc123 |
| Website button | fivem://connect/cfx.re/join/abc123 |
| F8 console | connect cfx.re/join/abc123 |
| Testing / direct IP | connect 203.0.113.7:30120 |
| Behind an HTTPS connect proxy | connect "https://play.example.com/" |
#Finding your join code
- Open the FiveM server browser (or servers.fivem.net) and find your server.
- Open its detail page; the URL ends in
/servers/detail/<code>. - That
<code>is what goes aftercfx.re/join/.
#A connect button on your website
<a class="play" href="fivem://connect/cfx.re/join/abc123">Play now</a>
<a class="fallback" href="https://cfx.re/join/abc123">Open in browser</a>The protocol link opens FiveM if it is installed; the web link is a fallback that also explains how to get FiveM. From a loading screen, open links with window.invokeNative('openUrl', …) — see interactive loading screens.
#Moving hosts without breaking links
Use the same licence key on the new machine. Once it starts and heartbeats to Cfx.re, the listing — and the join code — point to the new address. Old direct IP links in Discord will break, which is another reason to always share the cfx.re/join link instead of an IP.
Questions
How do I get my cfx.re/join link?
https://cfx.re/join/.How do I connect to a FiveM server by IP?
connect ip:port, for example connect 203.0.113.7:30120.How do I make a “Play” button on my website?
fivem://connect/cfx.re/join/<code>, with the https://cfx.re/join/<code> link as a fallback.Will my join link change if I change hosts?
Ready to pick a map?
Twelve themes on three base map styles, $8 each, instant download.
Relevant to what you just read
The tool for this
A drag-and-drop loading screen, hosted for you From Free, built in the browser, exported as a drop-in resource.