Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

For a self-hosted Sons of the Forest dedicated server, stop the server, open dedicatedserver.cfg, set "Password" to a non-empty shared secret, save the file, and restart the server. Connecting players must enter that password before they can proceed. If everyone is on the same local network, also set "LanOnly": true to keep the server out of the public listing. A managed host exposes the same password setting in its control panel.

For a managed option, Godlike.Host’s Sons of the Forest hosting provides a game panel with configuration controls, free DDoS protection, and up to three free backups a day with restore. Its Sons of the Forest plans list 4, 12 and 20 slots; the server’s MaxPlayers setting allows 1 to 8 players (Steam Community server guide, 11 Oct 2026).

What actually makes the server private?

The Password field is the access-control setting. The Steam Community Dedicated Server Configuration Guide, updated January 15, 2025, states that a password is requested before a connecting client can proceed. A blank password means the server has no password protection.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The password can be any string up to 40 characters. Use one shared only with the people you want to play with; do not publish it alongside the server address. Password protection does not change the server’s network ports or automatically configure your router and firewall.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

LanOnly controls visibility rather than replacing the password. Setting it to true keeps the server for local-network use and excludes it from the public listing. If players outside your home network need to connect, leave the server reachable through the configured ports and use the password as the access-control layer.

Set a password on a self-hosted dedicated server

1. Install or update the dedicated server

Install or update the Sons of the Forest Dedicated Server with SteamCMD app ID 2465200, or install the Dedicated Server tool through Steam. Launch the server with StartSOTFDedicated.bat.

2. Launch it once to create its files

Run the server one time before looking for the configuration file. The first launch creates the default user-data directory and configuration files. Stop the server cleanly before editing its configuration.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth

3. Open the user-data directory

Unless you supplied a custom -userdatapath, open:

C:Users<user>AppDataLocalLowEndnightSonsOfTheForestDS

The <user> portion is your Windows account name. A custom -userdatapath moves the files, so check that launch setting if the default directory is empty.

4. Back up and edit dedicatedserver.cfg

Make a backup copy of dedicatedserver.cfg before changing it. The file uses JSON, so preserve quotation marks, commas, braces, and the exact field names. Add or change the password value to a non-empty string, for example:

"Password": "a-long-random-shared-secret"

Do not leave the value as an empty pair of quotation marks, and do not remove the comma needed between adjacent JSON fields. An invalid comma or quotation mark can prevent the server from reading the file.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.

5. Save, restart, and distribute the secret

Save the file, start the dedicated server again, and give the password only to intended players. A client should be prompted for it before being allowed to continue. If you changed the file while the server was running, the running process may still be using the old value; stop and restart rather than relying on a live reload.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make the server LAN-only

For a group playing on the same local network, set the Boolean field as follows:

"LanOnly": true

This removes the server from the public listing for LAN use. It is a visibility control, not a substitute for a password when you need to restrict access further. You can use both settings: LanOnly limits where the server is advertised, while Password requires a secret from anyone who connects.

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.

If friends are connecting over the Internet, do not assume that LanOnly will make remote access work. Internet players need the server’s configured UDP ports allowed through the router and the operating-system firewall.

Ports and firewall requirements for Internet players

The Steam Community configuration guide’s 2025 update documents these default UDP ports:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Setting Default UDP port Role
GamePort 8766 Game traffic
QueryPort 27016 Server query traffic
BlobSyncPort 9700 Blob synchronization traffic

If you changed any of these values in dedicatedserver.cfg, forward the changed ports instead of the defaults. Router port-forwarding and operating-system firewall rules must allow the configured UDP ports for players outside the local network. The server’s startup self-test can stop boot when a required UDP port is closed, so a password change alone cannot resolve a blocked-port failure.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

LAN versus Internet decision

  • Everyone is on the same home or office network: set LanOnly to true; router port-forwarding for Internet access is not part of the LAN-only setup.
  • Some players are remote: keep the server reachable on its configured UDP ports, forward those ports to the server computer, allow them through the operating-system firewall, and protect entry with a non-empty password.
  • You want both limited listing and a secret: use LanOnly: true and a password, but understand that the LAN-only setting is intended to exclude public listing and may prevent remote players from finding or reaching the server.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use a managed hosting control panel

On a hosted server, the file is normally edited through the provider’s web panel rather than Windows Explorer. A provider guide published November 16, 2025, describes the workflow as the only supported privacy control: set a server password.

  1. Open the server control panel.
  2. Go to Config, then Dedicated Server Settings.
  3. Enter a non-empty password in the password field.
  4. Save the configuration.
  5. Restart the server.
  6. Give the password to the players you want to admit.

After the restart, a connecting player should receive a password prompt. The panel may hide the underlying dedicatedserver.cfg, but it changes the same server setting. If the panel offers separate visibility or LAN controls, apply those only when your players are on the corresponding network.

Configuration fields that are easy to confuse with privacy

Field Allowed or documented values What it controls
Password Any string up to 40 characters Prompts connecting clients before they proceed
LanOnly true or false Whether the server is restricted to LAN visibility
MaxPlayers Integer from 1 to 8 Maximum player count, not authentication
GamePort UDP port number; default 8766 Game networking
QueryPort UDP port number; default 27016 Server queries
BlobSyncPort UDP port number; default 9700 Blob synchronization
SaveMode new or continue Save initialization, not privacy

Changing MaxPlayers, SaveMode, or a port does not password-protect the server. Privacy comes from the password; LAN visibility comes from LanOnly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshoot a private server

The server still lets anyone in

  • Stop the server and verify that Password contains a non-empty string.
  • Check that you edited the active file in the SonsOfTheForestDS directory, not a backup or an unused installation.
  • If you use -userdatapath, edit the configuration in that custom directory.
  • Save the JSON and restart the server so the process loads the new value.

Friends cannot connect after the password was added

  • Confirm that they are using the exact current password, including capitalization and punctuation.
  • For Internet players, verify forwarding and firewall rules for the configured UDP GamePort, QueryPort, and BlobSyncPort. Use the actual values in the file if they differ from 8766, 27016, and 9700.
  • Read the server’s startup self-test. A required closed UDP port can stop boot before anyone can connect.
  • For a LAN-only setup, confirm that every player is on the same local network and that LanOnly was intentionally enabled.

The configuration file is missing

Launch the dedicated server once, stop it, and check C:Users<user>AppDataLocalLowEndnightSonsOfTheForestDS. If the server was started with -userdatapath, inspect that custom location instead.

The server disappears from the listing

That is expected when LanOnly is true. LAN-only visibility is designed to exclude the public listing. For remote players, review the LAN setting and the external network configuration rather than removing the password.

The server will not start after editing

Restore the backup and compare the edited lines for missing quotation marks, commas, or an incorrectly typed Boolean. JSON requires true without quotation marks for LanOnly; writing "true" changes it to a text value instead of the documented Boolean setting. After correcting the syntax, save and restart.

Final privacy checklist

  • Password is present and non-empty, with no more than 40 characters.
  • The file was edited after the first server launch and in the active user-data path.
  • The server was stopped before the edit and restarted afterward.
  • LanOnly: true is enabled when the server should be LAN-only.
  • Remote play has forwarding and firewall rules for the configured UDP ports.
  • The password was shared only with intended players.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.