To show a Valheim dedicated server in the in-game server browser, launch it with -public 1. To hide it from the browser, use -public 0. The hidden setting does not shut the server down: players can still connect with Valheim’s Join IP control when you give them the server address and game port.
Prefer not to run the server on your own PC? Godlike.Host offers hosted Valheim servers with free DDoS protection and up to three free backups a day.
These options are set in the dedicated server’s startup script. Make a copy of the script before editing, because Steam updates can overwrite the original. After restarting, wait for the log message Game server connected; that is Iron Gate’s operational checkpoint showing that the server is ready to accept connections.
As an Amazon Associate I earn from qualifying purchases.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsWhat the -public setting actually changes
The -public launch argument controls discoverability, not whether the world is running. The documented values are:
-public 1publishes the dedicated server to Valheim’s in-game and community server list.-public 0removes it from that browser. Players must use Join IP instead.
Changing this value does not repair a stopped process, a blocked firewall rule, an unreachable router port, or a backend configuration problem. A server can be configured as public and still be absent from the browser if it never reaches the network or fails to register with its backend.
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
Change the setting in the dedicated-server files
1. Install the official dedicated server
In Steam, open the Library, change the library filter to Tools, and install Valheim Dedicated Server. This is a separate tool from the normal game client.
2. Open the installation folder
Use Steam’s properties for Valheim Dedicated Server and choose Manage followed by Browse local files. You need the folder that contains the startup script, not the folder for a normal client installation.
3. Copy the startup script
Iron Gate recommends working from a copy because Steam updates may reset the original script. On Windows, copy start_headless_server.bat. On Linux, copy start_server.sh. Give the copy a clear name, such as start_public.bat or start_hidden.sh, and keep it in the same installation directory unless you have deliberately adjusted its paths.
4. Edit the launch command
Open the copied file in a plain-text editor. Find the line that starts the Valheim server and locate the existing -public argument. Change its value rather than adding conflicting values elsewhere in the command.
- For a listed server, use
-public 1. - For a browser-hidden server, use
-public 0.
If the copied script does not contain a -public argument, add the appropriate argument to the server launch command, separated from the other arguments by a space. Preserve the rest of the command, including the world, name, password, port, and any backend options already configured for your installation.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
5. Save and launch the copy
Save the edited file, stop any currently running dedicated-server process, and launch the copied script. Editing a file does not change a process that is already running; the server must be restarted with the new command line.
6. Confirm the server is operational
Watch the server console or log. Iron Gate’s guide says the message Game server connected means the server is up and ready to accept connections. Diagnose browser visibility only after this checkpoint appears. If the message never appears, the problem is not merely the public or hidden flag.
How players join a hidden server
With -public 0, the server is intentionally absent from the in-game list. Send each player the server’s reachable address and game port. In Valheim, open the multiplayer join screen and select Join IP, then enter the address in the format the game requests.
This direct method is the documented access path for an invisible server. Hiding the listing does not create an invitation system or alter the world itself; it simply means players need the address from you instead of finding the server by browsing.
Public versus hidden operation
| Aspect | -public 1 |
-public 0 |
|---|---|---|
| In-game browser | Listed in the public/community server list after the server successfully registers. | Not listed. |
| Normal access route | Players can locate it through the browser; direct connection remains possible where networking permits. | Players use Join IP with the server address and game port. |
| Discoverability | Anyone browsing can see the server’s listing information. | Only people who receive the address and port can use the intended direct route. |
| Network requirements | Still depends on the selected backend, reachable ports, firewall rules, router configuration, and a running process. | Uses the same underlying network requirements; hiding the listing does not bypass them. |
The choice is therefore about who can discover the endpoint through the browser. It is not a substitute for access control, a firewall, or a different hosting arrangement.
Recommended Free Tools
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
Steam backend networking
When the server uses Valheim’s Steam backend, Iron Gate documents 2456-2457 as the default port range. The selected server port and the next port are used. A server intended for players outside the host’s local network needs the relevant port range reachable from the internet, normally through the host firewall and router port-forwarding configuration.
What to check for a Steam server
- Identify the port configured in the startup command. The documented default pair is 2456 and 2457, but a custom port changes which pair must be exposed.
- Allow the dedicated-server executable through the operating-system firewall on the required network profile.
- Forward the selected port and the next port from the router to the machine running the server when players connect from outside the local network.
- Give players the correct public address, not a private address such as a local
192.168.x.xaddress, when they are outside your home network. - Make sure another server is not already using the same port pair on that public IP.
A public flag cannot make an unreachable Steam endpoint appear reliably. Port exposure and process health must be correct first.
Crossplay backend networking
Starting the server with -crossplay selects Valheim’s Crossplay backend. Iron Gate documents a relay path for this backend, so outside players do not need router port forwarding in the usual way. Crossplay still uses the configured port to distinguish multiple servers sharing one public IP, so the port value remains meaningful even when the relay handles the external traffic.
Crossplay is the route to investigate when players on different supported platforms need to connect. Platform-specific details belong to Iron Gate’s Crossplay FAQ and dedicated-server manual. The backend choice must match the clients and the rest of the launch configuration; switching to Crossplay is not required simply to hide a listing.
The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Why a public server may not appear
If a server launched with -public 1 is missing from the browser, use this order of checks. It avoids treating a registration or networking failure as a visibility-setting problem.
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
Check that the running process uses the edited file
It is easy to edit a backup and then double-click the original script, or to maintain two server folders and launch the wrong copy. Close the running process, verify the exact file path, and start the copy containing the intended -public 1 argument. If you maintain several worlds, label each script so the active file is unambiguous.
Check for Game server connected
If this line is absent, resolve the startup failure before investigating discovery. Look for a malformed command, a missing executable, a world or permission error, or a port already in use. The browser cannot list a server that has not completed its connection to the backend.
Check the backend and port assumptions
Confirm whether the launch command uses the Steam backend or includes -crossplay. For Steam, verify the configured port pair, firewall allowance, and router forwarding. For Crossplay, verify that the Crossplay option is actually present in the command and that clients are using the platform-compatible route.
Check firewall and router exposure
A browser listing does not override blocked traffic. Recheck inbound rules after an operating-system update, confirm that forwarding targets the machine’s current local address, and ensure the server is not behind a second router or another layer of network address translation that prevents the required traffic from reaching it.
Do not invent a propagation deadline
Iron Gate’s published material does not establish a guaranteed number of seconds or minutes for a listing to appear after changing -public. Do not treat an arbitrary wait time as a fix. First confirm the edited script, the restart, the Game server connected message, the selected backend, and the relevant network path.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
Common mistakes when hiding a server
Using the wrong value
-public 0 hides the server; -public 1 shows it. Check the value immediately after the argument and remove any duplicate -public entries that could make the command ambiguous.
Expecting a hidden server to appear in search
A correctly hidden server will not be discoverable in the browser. Test it with Join IP from a client that has the correct address and port instead of searching for its name.
Changing the original script only
Steam updates can restore the original startup file. If you edit the original and later update the tool, your setting may disappear. Keep a maintained copy and launch that copy consistently.
Confusing the save interval with visibility
Iron Gate documents a default world-save interval of 30 minutes, or 1,800 seconds. That interval concerns world persistence, not browser registration. Changing or waiting for a save does not make a public server appear or a hidden server become listed.
Managing more than one server
If several dedicated servers share one public IP, assign each instance its own configured port so the backend can distinguish them. With Steam, expose the corresponding port pair for each instance. With Crossplay, the configured port still distinguishes multiple servers even though external traffic uses the relay.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Give players the address and port belonging to the correct world when using -public 0. A correct hidden-server setup can still fail for one player if that player receives another instance’s port or an address that is only valid inside the host’s local network.
Quick Recap
A practical change-and-test checklist
- Install or locate Valheim Dedicated Server through Steam’s Tools section.
- Browse to the installation folder.
- Copy
start_headless_server.baton Windows orstart_server.shon Linux. - Set exactly one intended value:
-public 1to list the server or-public 0to hide it. - Save the copy and stop any old server process.
- Launch the copied script.
- Wait for Game server connected.
- For a public server, search the in-game browser. For a hidden server, test Join IP with the correct address and game port.
- If discovery or connection fails, verify the active script, backend, firewall, router exposure, and port pair before changing unrelated settings.
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.




