# How to turn a public Rust server into a friends-only server

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

Give the friends you want to keep an explicit way in, then hide the public listing if you want it out of search. Players who saved the old address can still try a direct connection.

## Limit joining before changing the listing

Use your host's supported allowlist or an allowlist plugin compatible with your server's framework. Add the intended players using their Steam IDs and keep an owner account on the list. Ask one permitted friend to try it during a planned window.

If you also want the listing gone, close public access to the query port and keep the game port reachable for the people who will connect directly. On a rental, ask your host how to take the query port out of public use without losing the game port.

## Test with two accounts

Have an allowed account use the direct address. Ask a willing friend whose account is outside the allowlist to try the same address and confirm the server refuses entry. Then search from outside your network with filters cleared to check whether the listing is gone. Each test answers a different question.

## Sources

- [Facepunch guide to hidden and allowlisted servers](https://wiki.facepunch.com/rust/Creating_a_hidden_whitelisted_server)
- [Facepunch guide to creating a Rust server](https://wiki.facepunch.com/rust/Creating-a-server)

## Related resources

- [Groups and permissions](https://rustsc.com/support/guides/player-permissions/index.html.md)
- [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/make-a-public-rust-server-friends-only/
