# What address should friends use to join your Rust server?

[Rust server guides](https://rustsc.com/learn/index.html.md) / [Hosting](https://rustsc.com/learn/hosting/index.html.md)

Use the public game address and game port for friends joining from outside your home. A command that works on the host or on your home Wi-Fi may contain an address that only works there.

## Match the address to where the player is

On the host, localhost points back to the host itself. From another device on your home network, use the host’s private address. For friends elsewhere, use your public address at home or the public game address shown by your rental host.

Send the complete instruction they will use in the Rust F1 console. For example, if your public address were 203.0.113.42 and your public game port were 28015, the instruction would be connect 203.0.113.42:28015. Replace both parts with the values for your server.

## Ask one friend to try the exact instruction

Have a friend outside your network paste the instruction and confirm they loaded into your world. A friend who tried a private address earlier should retry with the replacement before you change any server settings.

If the public address still fails while the private address works, check where the public game port goes. On a home connection, the router needs to forward that UDP port to the host. On a rental, check the game address and port in the panel before asking support to look at the connection.

## Sources

- [Facepunch direct connection instructions](https://wiki.facepunch.com/rust/Creating-a-server)
- [RFC 1918 private IPv4 addresses](https://www.rfc-editor.org/rfc/rfc1918.html)
- [RFC 5737 addresses for examples](https://www.rfc-editor.org/rfc/rfc5737.html)

## Related resources

- [What a message means and what to do](https://rustsc.com/support/guides/fix-common-problems/index.html.md)

---

HTML version: https://rustsc.com/learn/hosting/which-address-should-friends-use/
