In short
If you can't connect to a Valheim server, first check that the server is actually running, that UDP ports 2456-2458 are open, and that the server and the game are on the same version. If the server isn't in the list, connect directly with IP:2456; for incorrect password, check the password and your keyboard layout; for version mismatch, update both the server and the game; and if you use mods, make sure the mod lists match.
In this guide
- Start with a 5-Minute Quick Check
- Valheim Server Ports
- Error 1: Server Not Showing in the List
- Error 2: Incorrect Password
- Error 3: Incompatible Version (Version Mismatch)
- Error 4: Disconnected / Failed to Connect
- Admin, Ban and Allowlist Files
- In-Game Stuttering and Disconnects
- If the Server Won't Start at All
- Troubleshooting Table
- Next Step: A Server Without Port and Update Headaches
Most Valheim server connection problems come down to one of four causes: the server isn't actually up, the ports are closed, the game and server versions differ, or the password or mod list doesn't match. The error message you get usually tells you which one. Below is a quick checklist first, followed by fixes for each error message.
Start with a 5-Minute Quick Check
- Has the server fully started? Trying to connect before the world finishes loading causes a timeout. Wait for the console lines showing the world has loaded and the game server is accepting connections. On large worlds this can take a few minutes.
- Right address and port? For a direct connection, the address is
IP:2456. The port must match the server's-portvalue. - Same version? The version number is shown in a corner of the game's main menu, and the server console prints its own version at startup.
- Any mods? If the server runs BepInEx or both-sides mods, the player needs the same ones.
- Can anyone else connect? If only one player can't get in, the problem is most likely on that player's PC or network.
Valheim Server Ports
The Valheim dedicated server uses UDP. The default game port is 2456, and the Steam query port is one higher. To be on the safe side, it's common practice to open the range 2456-2458.
| Port | Protocol | Purpose |
|---|---|---|
| 2456 | UDP | Game traffic (the -port value) |
| 2457 | UDP | Steam query port; server list and visibility through Steam |
| 2458 | UDP | Commonly opened as an extra safety margin |
If you changed the -port value (for example to 2466), the range shifts the same way: 2466-2468.
To open the firewall on your own VDS:
# Ubuntu / Debian (ufw)
sudo ufw allow 2456:2458/udp
sudo ufw reload
# Rocky / AlmaLinux (firewalld)
sudo firewall-cmd --permanent --add-port=2456-2458/udp
sudo firewall-cmd --reload
# Windows Server (administrator PowerShell)
New-NetFirewallRule -DisplayName "Valheim UDP" -Direction Inbound -Protocol UDP -LocalPort 2456-2458 -Action Allow
On Linux, you can confirm the server is really listening on the port with:
ss -ulpn | grep 245
With a ready-made game panel, the ports are set up with your plan, so you can skip this step. On OyunBulut Valheim plans, the server's IP and port are shown in the panel; copy the connection address from there.
Error 1: Server Not Showing in the List
Valheim's community server list updates slowly, and because it holds thousands of servers, search isn't always reliable. Not showing up in the list doesn't mean the server is broken.
- Connect directly: On the Join Game screen, use Add server and enter
IP:2456. This works independently of the list. - Check
-public 1: A server started with-public 0never appears in the list; that may be intentional. - Query port: If the port one above the game port (2457) is closed, the server may not show up in the list even though it's playable.
- Wait: A newly started server can take a few minutes to appear in the list.
- Crossplay filter: If the server was started with
-crossplay, Steam players need the crossplay option turned on in the Join Game screen. On crossplay servers, the easiest way in is the join code; details are in the Valheim crossplay guide.
Error 2: Incorrect Password
- Passwords are case-sensitive. Keyboard layout can trip you up: on a Turkish keyboard, for example,
i/İandı/Iare easy to mix up, so avoid these letters in the password. - If the password was changed in the panel, the new password doesn't take effect until the server restarts.
- If the password contains spaces or special characters, make sure it's in quotes in the launch line.
- A Valheim password must be at least 5 characters and must not contain the server name. With a password that breaks this rule, the server never starts, so what looks like a connection problem is really a startup problem.
Error 3: Incompatible Version (Version Mismatch)
This error means the game client and the server are on different versions. It shows up most often on update days.
- Update the server. Use the update or reinstall option in your panel. On your own server, with SteamCMD:
steamcmd +force_install_dir /home/valheim/server +login anonymous +app_update 896660 validate +quit - Update the game. Make sure Valheim has finished updating in Steam; restart Steam if needed.
- Check the beta branch. If a player switched to the public test branch on Steam, they can't connect to a regular server. Turn off the beta branch under the game's Properties > Betas.
- On a modded server: Some mods reject connections themselves when versions differ and show a similar message. Match the mod versions to the server; the method is in the Valheim mod installation guide.
The Steam app ID for the Valheim dedicated server is 896660; adding validate to the command also repairs missing or corrupted files.
Error 4: Disconnected / Failed to Connect
If the connection never gets established or drops right after the loading screen, possible causes are:
- The server isn't ready yet: Trying to connect right after a restart triggers this error. Watch the console.
- Closed port: Check the firewall steps above.
- Banned player or not on the allowlist: Look at the
bannedlist.txtandpermittedlist.txtfiles in the save folder. Ifpermittedlist.txtcontains at least one SteamID, only the players on that list can get in. - Mod mismatch: A both-sides mod that's on the server but not on the player's PC causes a disconnect right after connecting.
- Server running out of resources: When memory runs out, the server stops responding or crashes. If you see memory errors in the console, consider upgrading your plan.
- The player's network: Some router and VPN configurations block UDP traffic. Turn off the VPN and try again.
Admin, Ban and Allowlist Files
Valheim controls access with three plain-text files in the save folder. Each file takes one SteamID64 (the 17-digit Steam ID) per line. Xbox players are identified by their platform ID, which appears in the server log when the player connects.
| File | Purpose | Effect on connecting |
|---|---|---|
adminlist.txt | Grants admin rights (kick, ban, settings commands) | Doesn't block connections |
bannedlist.txt | Banned players | Players on the list can't connect |
permittedlist.txt | Allowlist (whitelist) | If the file has at least one ID, only listed players can get in |
A common scenario: the server owner adds only their own ID to permittedlist.txt, then their friends can't connect and everyone blames the network. Add the ID of the player who can't connect to the list, or empty the file if you don't want an allowlist. Restart the server to make sure changes to these files take effect.
You can find your own SteamID64 from your Steam profile link or from the line written to the server log when you connect. In the OyunBulut panel, you can edit these files directly in the file manager; every Valheim plan, including the OB-VAL-2 Valheim server plan, comes with a web panel.
In-Game Stuttering and Disconnects
If you can connect but keep getting dropped, the cause is usually server load. In Valheim, much of the world sync is shared among players, so one player with a weak connection can affect the experience of everyone nearby. Large bases with lots of pieces also add load. On servers with frequent disconnects, check memory usage in the panel first; if usage sits near the limit, the problem is resources, not the network.
If the Server Won't Start at All
Sometimes the problem isn't the connection but the server itself. If you see one of these in the console, get the server running first:
- Password rule violation: If the password is shorter than 5 characters or contains the server name, the server won't start.
- Corrupted world file: If the world throws an error while loading, try the
.db.oldfile or your latest backup; the method is in the guide to uploading a Valheim world to a server. - Port conflict: If another Valheim server on the same machine uses the same port, the second server can't start. Give each server its own port range.
- Crashing mod: Temporarily disable the mod that throws errors in the BepInEx log.
Troubleshooting Table
| Symptom | Likely cause | First thing to do |
|---|---|---|
| Not in the list, but connects by IP | List delay, -public 0 | Keep connecting by IP |
| Not in the list and not by IP | Server down or port closed | Check the console and the firewall |
| Incorrect password | Wrong password, letter mix-up | Simplify the password and restart |
| Incompatible version | Version mismatch | Update the server and the game |
| Connects, then drops immediately | Mod mismatch, allowlist | Mod list and permittedlist.txt |
| Frequent in-game disconnects | Server load, weak client connection | Review memory and player count |
Next Step: A Server Without Port and Update Headaches
On servers hosted from a home connection, port forwarding and router settings are the most common source of trouble. On OyunBulut Valheim servers, ports come preconfigured with your plan; with automatic setup, a web panel and DDoS protection, your server runs from Istanbul, and you can open a support ticket (in Turkish) if you run into problems. For a small to mid-sized group of friends, the OB-VAL-2 Valheim plan with 6 GB RAM is a good starting point for avoiding disconnects caused by running out of memory.
Frequently asked questions
What ports does a Valheim server use?
The default game port is UDP 2456 and the Steam query port is UDP 2457. Common practice is to open the UDP range 2456-2458; if you change the -port value, the range shifts with it.
My Valheim server isn't showing in the list. What should I do?
On the Join Game screen, use Add server and enter IP:2456 to connect directly. Check that the server was started with -public 1 and that the query port is open; it can take a few minutes to appear in the list.
What causes the incompatible version error?
The game client and the server are on different versions. Update the server, and make sure the game is updated in Steam and that you're not on a beta branch.
The password is right, but I get an incorrect password error.
Passwords are case-sensitive, and on a Turkish keyboard the letters i and ı are easy to mix up. If you changed the password in the panel, restart the server.
My friend can connect but I can't. Why?
The problem is most likely on your end: a different game version, a missing mod, a VPN, or your network blocking UDP traffic. Also, if permittedlist.txt is in use, check that your SteamID is on the list.