While there is no current way to add a password to your Rust server, there are two ways that you can stop other players from joining your server. This can be done either through:
- Restricting access to those outside of your Steam group in your server config files
- Installing a Whitelist plugin via Oxide
How to make your server private via the server config:
- Stop your server
- Navigate to the Configuration Files tab
- Open the server.cfg with the text editor
- Remove the # in front of server.steamgroup <steam group id>
- Set your 16 digit Steam Group ID then click "Save & Exit"
- Start your server
How to find your Steam Group ID:
- Find the URL of your Steam group, which will take the form of:
https://steamcommunity.com/groups/nameofgroup - Add '/memberslistxml/?xml=1' to the end of your group's URL. Following the previous example, your new URL should be:
https://steamcommunity.com/groups/nameofgroup/memberslistxml/?xml=1 - This will bring you to a page full of XML code, at the top of which will be your group's ID. The 16 digit number inside of 'groupID64 tags' will be your server ID.