Valheim Won't Connect to Your Server? Here's the Fix

Most Valheim 'can't connect' problems are one of three things: your game version doesn't match the server, the server's UDP ports 2456-2457 aren't reachable, or the server browser is just being flaky. The fastest fix in 2026: use the crossplay Join Code (Start Game > Join Game > Join with code) — it tunnels through PlayFab and skips port forwarding entirely. If you host your own dedicated server, update it to the same build as your client and connect by direct IP:port instead of the server list.

Valheim dedicated server — exact ports & save path

Ports to forward (UDP)
2456-2458
Protocol
UDP only (not TCP) — Valheim uses no TCP port
Server world save path
%USERPROFILE%\AppData\LocalLow\IronGate\Valheim\worlds_local
Where the connect error is logged
Dedicated-server console window / valheim_server log next to the .exe
Common cause of 'failed to connect'
Only 2456 forwarded — you must open 2456, 2457 AND 2458

Last verified: September 2026

Error codes

Connection failed / Failed to connect The client reached out but the handshake never completed

Cause: Almost always a version mismatch between client and server, or UDP 2456-2457 blocked on the host.

Fix:
  1. Confirm the dedicated server is on the exact same Valheim build as your client (a Steam update on one side breaks the join).
  2. Host: forward UDP ports 2456 AND 2457 to the server's local IP, and allow valheim_server.exe through the firewall.
  3. Try the crossplay Join Code instead of the server list — it bypasses ports entirely.
  4. Connect by direct IP: Start Game > Join Game > Join IP, then enter serverIP:2456.
Server not showing in the browser / Community list The server is running but never registers in the public/community list

Cause: The browser is unreliable and often omits servers even when they are online; also requires the correct launch args.

Fix:
  1. Don't rely on the browser — use the direct IP:2456 join or the crossplay code.
  2. Host: launch with -public 1 and a -password set (a server with no password will refuse to start).
  3. Give the server 1-2 minutes after boot to register before it appears in the community list.

Fixes that work for most Valheim errors

  1. Easiest path: crossplay Join Code (Join Game > Join with code) — no ports, works across Steam/Xbox/Game Pass.
  2. Match versions: the dedicated server and every client must be on the identical Valheim build.
  3. Host forwards UDP 2456 and 2457 (both) to the server machine's local IP.
  4. Connect by direct IP:2456 rather than trusting the server browser.
  5. Set a server password (min 5 chars) — the dedicated server won't launch without one unless crossplay-only.
  6. Verify game files: Steam > right-click Valheim > Properties > Installed Files > Verify integrity.
  7. If it broke right after an update, wait until BOTH the host and all players finish updating to the same build.

FAQ

Why won't my Valheim dedicated server show up in the list?

The community browser is unreliable and frequently omits online servers. Use the direct IP:2456 join or, easiest, the crossplay Join Code, which connects through PlayFab and ignores the browser entirely.

Which ports does a Valheim dedicated server need?

UDP 2456 and 2457 both need to be forwarded to the server's local IP and allowed through the firewall. If you use the crossplay Join Code, no port forwarding is required.

Do all players need the same version?

Yes. A version mismatch between the dedicated server and any client causes an immediate connection failure. Make sure everyone has finished the same Steam update before retrying.

Other games