---
title: How to Add a Password to your Sons of the Forest Server
description: "How to Add a Password to your Sons of the Forest Server. "
source: "https://nodecraft.com/support/games/sons-of-the-forest/how-to-add-a-password-to-your-sons-of-the-forest-server"
image: "https://dynamic-assets.nodecraft.com/signedurl/w7vokBAexMnVlnMZ1Q/image.jpg?modifications=W3sibmFtZSI6ImdhbWVfYmciLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvMjAwMXg1NTEvZmQxNDRlZGJhNC9zb25zLW9mLXRoZS1mb3Jlc3QtbGFuZGluZy0xLTAtMi5wbmcvbS8ifSx7Im5hbWUiOiJnYW1lX2xvZ28iLCJpbWFnZV91cmwiOiJodHRwczovL2Ntcy1hLm5vZGVjcmFmdC5jb20vZi8xMzM5MzIvNTEyeDM5OC84ZTI0NTRjZGI2L3NvbnMtb2YtdGhlLWZvcmVzdC1sb2dvLnBuZy9tLyJ9LHsibmFtZSI6ImN0YV90ZXh0IiwidGV4dCI6IkNyZWF0ZSB5b3VyIG93biBzZXJ2ZXIhIn0seyJuYW1lIjoidGV4dCIsInRleHQiOiJIb3cgdG8gQWRkIGEgUGFzc3dvcmQgdG8geW91ciBTb25zIG9mIHRoZSBGb3Jlc3QgU2VydmVyIn1d&s=bf2ad891f6a86a81fbdcb78a35b78dda1da093b0257cb7aa4f4d88584de2a5f9"
published: "2025-11-26T23:59:29.751Z"
updated: "2025-11-26T23:59:29.715Z"
---

# How to Add a Password to your Sons of the Forest Server

How to Add a Password to your Sons of the Forest Server. 

Setting your** **Sons of the Forest server to private allows you to control who can join, keeping out uninvited players. Currently, the only way to make your server private is by setting a password.

## Set a Password via Game Settings

1. Open the **Nodecraft Pro Panel** for your **Sons of the Forest **server.
2. Go to **Game Settings**.
3. Under the **Basic Settings** tab, enter your desired password in the password field.
4. Scroll down and click **Submit** to save your changes.  
  ![how to edit/add password](https://cms-a.nodecraft.com/f/133932/1223x907/4f8a5532d7/password_sotf.png/m/1000x0/smart)
5. **Start** your server.

## Set a Password via Server Files (Manual)

1. Open the **Nodecraft Pro Panel** for your Sons of the Forest server.
2. Navigate to **Server Files**.
3. Locate the `dedicatedserver.cfg` file in: `/.wine/drive_c/users/wine/AppData/LocalLow/Endnight/SonsOfTheForestDS/dedicatedserver.cfg`
4. Select the file and click **Edit**.  
  ![settings for sotf](https://cms-a.nodecraft.com/f/133932/1846x477/4e8413998e/directed_server_cfg.png/m/1000x0/smart)
5. Enter your desired password in the `"Password":` field.
6. Click **Save**.
7. **Start** your server.

## Troubleshooting

If the password isn’t applying correctly:

- Make sure the server is **offline** while you make changes.
- Confirm that the password fields in both **Game Settings** and **Server Files** match.

## Conclusion

Making your Sons of the Forest server private is simple with two options in the Nodecraft Pro Panel: through **Game Settings** or by editing the **Server Files** directly. Once you’ve saved your changes and restarted your server, your password protection will be active.
