Connectivity Problem with Project Zomboid - Cannot connect to my project zomboid server

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Phobos’ v2.6.0.4 (Mainline)
Virtualization Docker
Application Project Zomboid
Module GenericModule
Running in Container Yes
Current State Stopped

Problem Description

Issue

I have tried multiple things - forward a whole bunch of ports for server, both UDP and TCP(just to test if that helps), disable firewall server side, change to different ports(16263 and 16264) but none of that works. I confirmed that ports are open by having nc listen on server side and sending a message via ncat. The message was delivered which leads me to believe that ports are ok. The game even sees that server is open, but gets stuck on “getting server info” when connecting. In the server console I get this:

[18-11-24 05:29:17.888] LOG : Network , 1731907757888> 11,781,715> [18-11-24 05:29:17.888] > ZNet: SSteamSDK → SZombienet: OnP2PSessionConnectFail.
[18-11-24 05:29:17.888] LOG : Network , 1731907757888> 11,781,715> [18-11-24 05:29:17.888] > ZNet: OnP2PSessionConnectFail: “Timeout”.

So something to do with AMP is not quite up to task but I cant seem to figure what it is. Found on the internet that forwarding ports 4379, 4380, 8676 and 8677 might help but it didn’t in my case.

Reproduction Steps

  • Create game server
  • Try to connect to server in game
  • Observe console

How are you trying to connect - via browser or direct port connection? What are the ports allocated in AMP? Note that PZ uses UDP ports only. Have you forwarded ports? What IP are you trying to connect on if using direct connect?

Ports allocated in AMP were at first the original 16261 and 16262, then I changed to the next 2 - 16263 and 16264. I have forwarded all 4 of these ports(UDP). When I turn off the PZ game server instance, I can freely send a text message to my server with the server having nc running in terminal listening on those ports and using ncat on the other end so it appears they are working correctly.

I’m trying to connect to PZ game server using its external IP through the game. If I set up a virtual lan using zerotier, I can connect to it “locally” however it will say that 2nd port (16262 or 16264 depending on which I tried) is not available and that performance can suffer.

Sounds like a NAT loopback/hairpin issue. Can someone outside your network connect to the server?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.