#Co-Op hosting isn't working on 41.77

18 messages · Page 1 of 1 (latest)

thorny wyvern
#

when starting a server via co-op "host" in the main menu, it stops loading partway through. DebugLog for the server contains this at the end.

 Initialising RakNet....
 [05-10-22 20:19:36.902] > ZNet: [-> CZombienet: RakNetPeerInterface_Init.
 [05-10-22 20:19:36.902] > ZNet: g_peer = 0x63fa0a0.
 [05-10-22 20:19:36.902] > ZNet: [-> CZombienet: RakNetPeerInterface_SetMaximumIncomingConnections.
 [05-10-22 20:19:36.902] > ZNet: [-> CZombienet: RakNetPeerInterface_SetServerPort.
 [05-10-22 20:19:36.902] > ZNet: SetServerPort: port=16261 UDPPort=16262.
 [05-10-22 20:19:36.902] > ZNet: [-> CZombienet: RakNetPeerInterface_SetIncomingPassword.
 [05-10-22 20:19:36.903] > ZNet: [-> CZombienet: RakNetPeerInterface_SetOccasionalPing.
 [05-10-22 20:19:36.903] > ZNet: [-> CZombienet: RakNetPeerInterface_Startup.
 [05-10-22 20:19:36.903] > ZNet: Startup version 41.77.3.
 [05-10-22 20:19:36.904] > ZNet: Startup: serverPort=16261 serverUDPPort=16262.
 [05-10-22 20:19:36.904] > ZNet: Zomboid Steam Server started, ports 16262 and 16261 must be open on the router.
 RakNet.Startup() return code: 5 (0 means success).
 java.net.ConnectException: Connection Startup Failed. Code: 5.
     at zombie.core.raknet.UdpEngine.<init>(UdpEngine.java:80).
     at zombie.network.GameServer.startServer(GameServer.java:1449).
     at zombie.network.GameServer.main(GameServer.java:740).

The dedicated loads fine, which is odd since I thought "hosting" just launched the dedicated server as a sub-process.

#

For the record, this test has no mods, though the dedicated server does have mods.

robust bridge
#

Could you share the Console and coop console files here ? Did you allocate enough ram ?

thorny wyvern
#

I haven't changed anything since 41.73, so RAM allocation shouldn't be an issue.

tight venture
#

Question, what do you mean exactly by "dedicated works but coop doesnt"

#

Are both those servers hosted on the same PC at the same time?

thorny wyvern
#

Yes. I have plenty of RAM, so that shouldn't be the issue. During patch 41.73 I could run the following all at once:

  1. A dedicated server for my friends to play on
  2. my copy of Zomboid
  3. a co-op server hosted from the "host" button in the main menu, for testing various MP things. It wasn't open to the public.
#

Given the error that the server is hanging at, it seems like it's not a resource issue but a networking issue.

thorny wyvern
#

Just to be sure, I went ahead and shut the server down and tried again. It does actually get past the connection issues this time, oddly enough, but I now can't get past "getting server info" without backing out and manually joining via "join". Did resource consumption change that much between 41.77 and 41.73?

#

I figured it out. With the network code changed in 41.77, both servers are trying to listen on UDP 16262, so when the second server tries to bind to that port it's not able to.

#

Confirmed. As soon as I updated the main server UDP port I was able to load the test server with no issue.

tulip hamlet
thorny wyvern
tulip hamlet
#

But if i read you correctly, your problem is because you have a dedicated server and you also host from ingame. I only host from ingame, does this issue affect me?

#

I can only start my server from ingame after a game restart

thorny wyvern
#

No, sounds like you're having a different problem.

tulip hamlet
#

hmmm ok, thanks anyway. It sounded similar