Valheim server ip:port not replaced with world name for clients

OS Name/Version: Ubuntu 25.04

Product Name/Version: Valheim 0.221.12

Problem Description: I set up multiple instances of Valheim on my local (not internet accessible) AMP server. Local LAN clients are able to connect to the games and play without any trouble using the game port (:2456 for example) but in their “Select server” list under “Join game” on the client side the <ip>:<port> in the list is never replaced with the server/world name - even after connecting. I understand this data is gathered through the steam query port, so I have focused my troubleshooting on that

Steps to reproduce:

  • Create new Valheim instance
  • Connect to game
  • Leave game
  • Try to rejoin, note that the <ip>:<port> in the server list (as shown in Valheim) is not replaced with the server/world name as configured in AMP

Actions taken to resolve so far:

  1. Checked that the Server Name and World Name are both set in AMP (they are the same values)
  2. Checked that the AMP instance shows both the game port and the query port as green / working
  3. Checked with netstat -anp that the server is listening on 0.0.0.0 to both the game and query ports
  4. Checked with iptables -L -n -v that the firewall ports are open
  5. Tried adding the game using local DNS short name, local DNS long name (host + domain), as well as local IP address. All forms add the server without problems and can be played, but still never replace the <ip>:<port> with the server/world name
  6. Tried browsing to the steam:// connection link, but steam doesn’t open
  7. Tried adding the game server directly to Steam using View > Game Servers > Favorites using the steam query port along with the IP, Steam says Did not find any servers at that address. (I also tried with the game port even though that shouldn’t work just to see what would happen, same result)

Commands run:

# netstat -anp | grep 245

udp      960      0 0.0.0.0:2457            0.0.0.0:*                           91963/valheim_serve
udp    54464      0 0.0.0.0:2459            0.0.0.0:*                           112412/valheim_serv
udp6       0      0 :::2456                 :::*                                91963/valheim_serve
udp6       0      0 :::2458                 :::*                                112412/valheim_serv

# iptables -L -n -v

Chain INPUT (policy ACCEPT 1161K packets, 4079M bytes)
pkts bytes target     prot opt in     out     source               destination
0     0 ACCEPT     tcp  –  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:2223 /* AMP:ADS01:FileManagerPlugin.SFTP.SFTPPortNumber /
47433   23M ACCEPT     udp  –  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:12820 / AMP:ADS01:ADSModule.Network.MetricsServerPort /
0     0 ACCEPT     tcp  –  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:2224 / AMP:Valheim01:FileManagerPlugin.SFTP.SFTPPortNumber /
350 40478 ACCEPT     udp  –  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:2456 / AMP:Valheim01:GenericModule.App.Ports.$ApplicationPort1 /
17   901 ACCEPT     udp  –  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:2457 / AMP:Valheim01:GenericModule.App.Ports.$ApplicationPort2 /
81781   16M ACCEPT     tcp  –  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:8080 / AMP:ADS01:Core.Webserver.Port /
159  521K ACCEPT     tcp  –  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:2225 / AMP:Valheimmicrospawn01:FileManagerPlugin.SFTP.SFTPPortNumber /
2044K 2066M ACCEPT     udp  –  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:2458 / AMP:Valheimmicrospawn01:GenericModule.App.Ports.$ApplicationPort1 /
51 24131 ACCEPT     udp  –  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:2459 / AMP:Valheimmicrospawn01:GenericModule.App.Ports.$ApplicationPort2 */