If the in-game list says your server is offline but you can still join it, stop looking at your firewall. That exact combination — offline in the list, joinable by IP — means Public server is switched off. Valheim only answers the server browser while Public is on, so the list has nothing to read and shows the worst-case status instead of no status.
# listed in the browser, player count readable ./valheim_server.x86_64 -name "My Server" \ -port 2456 -world "Dedicated" \ -password "secret" \ -public 1 # 0 = reads as OFFLINE in the list
Set the server to public and restart it. That is the entire fix for the common case.
On a self-hosted server, that is -public 1 in the launch line — the numeral, on the same command that already carries -name, -port and -world. On a hosted panel it is a Public server toggle in the settings. The change needs a restart; it is read at startup, not live.
Within a few seconds of the server coming back, the in-game entry flips from offline to online and starts reporting a player count. If you have the server saved in your list already, you do not need to re-add it — the same entry starts answering.
Public is not the same as unprotected. -public 1 controls whether the server is listed. -password controls whether anyone can get in. You can absolutely run a listed, password-locked server, and that is usually what people who wanted "private" actually wanted — a server their friends can find, that strangers cannot enter.
This is the part that sends people to their router settings for an hour, so it is worth being precise about what is happening.
A Valheim server uses two UDP ports: the game port for actually playing, and the query port — the game port plus one — which the server browser asks for the name, map and player count. A stock install uses 2456 and 2457.
With Public off, the server still binds the query port. It simply never reads what arrives on it. We measured this from outside the box and from the host's own loopback: queries land, and the receive queue on that socket climbed to nearly 60 KB of unread packets while the server ran perfectly and players were connected.
That matters because it rules out the two things everyone checks first. A firewall drop would mean the packets never arrive. A slow boot would mean the port is not bound yet. Neither is true here — the port is open, the packets arrive, and the server has decided not to answer.
The in-game list has no way to express "this server chose not to reply", so it shows the only status it has for a server that did not answer: offline.
Adding it by IP does not get around this. That is the detail that costs people the most time. A manually added entry still asks the query port for its status, so it renders offline exactly like a searched one — while Join IP connects to the same server without complaint. Offline in the list and joinable by IP is not a contradiction. It is the signature.
If you would rather leave the server unlisted, it is still perfectly reachable. Two routes.
Direct connect. Start Game → pick your character → Join Game → Join IP, and enter your.server.ip:2456 — the game port, not the query port. This ignores the browser entirely and works whether Public is on or off.
Crossplay join code. If the server runs with crossplay enabled, it gets a short join code that friends can use without touching the Steam browser at all. It is the cleanest way to run a genuinely unlisted server that people can still find, and it works across platforms.
If Public is already on and the entry still will not come up, work down this list in order.
| Check | What to look for |
|---|---|
| The query port | Game port + 1, UDP, forwarded and allowed through the host firewall. Gameplay works without it, so this fails silently — the server is joinable and invisible at the same time. |
| Both ports are UDP | Valheim does not use TCP for either. A TCP-only forward looks correct in a router UI and does nothing. |
| Give it a minute | The world loads before the server registers. A server that is up is not necessarily listed yet. |
| Version match | A server on a different build than your client will not show as a joinable result. Update both after a patch. |
| Crossplay setting | Crossplay changes which backend the server registers with. If you flipped it, expect the entry to move rather than to be missing. |
| Search vs Favorites | The community browser is a long, noisy list. Add the server to Favorites by IP and query port so you are not relying on a search finding it. |
Read the server's own log before you change anything else. Valheim prints a connection summary roughly every ten minutes, in the form Connections 2 ZDOS:12345. That number is the server's own count of who is on it, and it does not depend on the browser working at all. If the log says two people are connected while the list says offline, the server is fine and the problem is entirely on the listing side.
-public 1 is set, so the list has nothing to read and displays the server as offline. Set it, restart, and the entry starts answering with a live player count.Server behaving itself again? Here's the rest of the toolkit.