Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Check if Your Valheim Server Is Online

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to verify that your Valheim dedicated server is running and reachable, whether you host it yourself or rent from a provider. You'll learn quick checks from the game client, command-line tools, and server logs—so you can tell the difference between a server that's down and one that's just slow to respond.

What You'll Need

  • The server's IP address or hostname
  • The server's query port (default is 2457) and game port (default is 2456)
  • Access to the machine running the server (for local checks)
  • Optional: a tool like telnet or ncat (often built into Windows, macOS, or Linux)

Step-by-Step

  1. Check from the Valheim client. Open Valheim, select the server you want from the community list, or click "Join IP" and enter IP:2457 (default query port). If the server is online, you'll see its name, player count, and password prompt. If it times out or says "Connection failed," the server may be offline or unreachable.
  2. Ping the server's IP. Open a command prompt (Windows) or terminal (macOS/Linux) and run ping IP_ADDRESS. If you get replies, the machine is reachable on the network. If you get timeouts, the machine is off, firewalled, or on a different network.
  3. Test the game port with a TCP connection. Run telnet IP_ADDRESS 2456 (or nc -zv IP_ADDRESS 2456). If the connection succeeds, the game port is open. If it fails, the server isn't listening or a firewall is blocking it.
  4. Test the query port similarly. Run telnet IP_ADDRESS 2457 or nc -zv IP_ADDRESS 2457. The query port is used for the server list; if it's closed, the server may still be running but won't appear in the browser.
  5. Check the server process on the host machine. If you have console access, look for the Valheim server process. On Windows, open Task Manager and look for valheim_server.exe. On Linux, run ps aux | grep valheim. If the process isn't there, the server isn't running.
  6. Review the server logs. On the host, navigate to the server's log file (usually in the logs folder next to the executable). Look for lines like "Game server connected" or "Server started." If the log shows errors or stops abruptly, the server may have crashed.
  7. Use an online server status tool. Websites like valheim-servers.net or game-state.com can check if a public server is up. Enter the IP and port; they'll report status, player count, and version.
  8. Try connecting from a different network. If you're on the same LAN as the server, try using your phone's mobile data (disable Wi-Fi) and attempt to join via the external IP. This rules out local network issues.

Common Mistakes

  • Using the wrong port. Many guides mix up the query port (2457) and game port (2456). The game client uses the query port for listing, but the actual gameplay connection uses the game port.
  • Testing the wrong IP. If you're hosting on your own machine, using your public IP while on the same network can fail due to NAT loopback. Use your local IP (e.g., 192.168.x.x) when testing from the same network.
  • Ignoring firewall rules. Even if the server process runs, Windows Firewall or your router may block incoming connections. Ensure ports 2456-2457 (UDP and TCP) are forwarded to the host machine.
  • Assuming ping means the game port is open. Ping only tells you the machine is up; it doesn't tell you if the Valheim server is listening.
  • Forgetting that the server takes time to start. Valheim servers can take 30-60 seconds to fully initialize. If you check immediately after starting, it may appear offline.

Tips

  • Use a script to automate checks. For example, on Linux you can write a cron job that pings the port every minute and sends an alert if it fails.
  • Set up port forwarding correctly: forward both TCP and UDP for ports 2456 and 2457 to the server's local IP.
  • If you rent a server, most providers have a control panel with a status indicator. Use that as the first check.
  • Keep the server's version updated. If the client and server versions differ, the server may not appear in the list even though it's running.
  • For a quick local check, use the netstat command (Windows: netstat -an | findstr 2456, Linux: netstat -tulpn | grep 2456) to see if the process is listening.

Troubleshooting

Server doesn't appear in the in-game list. First, verify the query port is open (step 4). If it's closed, the server won't show up. Also check that the server's crossplay setting is enabled if you want to see it from the in-game browser. Sometimes the list is just slow; wait 10-15 seconds and refresh.

Connection times out when joining via IP. This usually means the game port (2456) is unreachable. Check firewall rules, port forwarding, and that the server process is running. Also ensure you're using the correct IP—if you're on a LAN, use the local IP; if remote, use the public IP.

Ping works but telnet fails. The machine is up, but the Valheim server isn't listening on that port. Restart the server process. Check the logs for errors like "Failed to bind" which indicate a port conflict.

Server shows as online but you can't join. This can happen if the server is full, the password is wrong, or your game version doesn't match. Check the server's player count and version. Also try restarting the server to clear any stuck sessions.

Server crashes repeatedly. Look at the logs for stack traces or memory errors. Common fixes: allocate more RAM in the start script, update the game, or remove mods that may be incompatible.

You're using a rented server and the control panel says it's online, but you can't connect. Contact your provider's support. Sometimes the server is on a different IP than what you're using, or there's a temporary network issue.

Frequently Asked Questions

Q: What ports does Valheim use?
A: The default game port is 2456, and the query port is 2457. Both use UDP and TCP. The Steam query port is 2457, and the game port is 2456.

Q: Can I check if my server is online without the game?
A: Yes, you can use command-line tools like telnet or nc to test the ports, or use a web-based status checker that queries the server's query port.

Q: Why does my server show as offline in the list but I can join via IP?
A: This often happens when the query port is blocked or the server's crossplay setting is disabled. The game port may still be open, allowing direct connections.

Q: How often should I check my server's status?
A: If you run a community server, checking every few hours is reasonable. For a small group, you might only need to check before a session. Automated monitoring is helpful if uptime matters.

Q: What does "Connection failed" mean in Valheim?
A: It means the client couldn't establish a connection to the server. This could be due to the server being offline, a firewall blocking the port, or a network issue between you and the server.

Q: Is there a way to get notified when my server goes down?
A: Yes, you can use a monitoring service like UptimeRobot (free tier) that pings your server's IP and port. Or write a simple script that sends an email or Discord message when the port check fails.