question

brendan avatar image
brendan asked

Custom game server not shutting down

Question from a developer:

We've got an Unreal game server that we've set up in PlayFab, but what we're seeing is that if we need to terminate it from the Game Manager, it disappears from the list, but apparently is still running. What happens is that because it's still running, it's still consuming its port. So when another instance tries to start, Unreal detects that the port specified is still in use (since PlayFab always gives a new instance the lowest port number it believes is available) and increments it. But the client has no way to know about this, and so is trying to talk to the server on the wrong port. Any idea why this happens?

Custom Game Servers
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Yes, the executable you launch (the one defined as the server exe in your build configuration) is the one we issue a shutdown for on the server. In this case, Unreal launched a second executable (the actual server exe - check your build folders, as you should find both the client and server versions, and the client one is specified in your build settings), which our game wrangler doesn't know about. Since we can't kill that process, the server stays running, blocking us from using the port on the next server instance. We're looking into ways to force-kill the instance, but the quick solution is to double-check the exe you're specifying in the build configuration, to make sure it's the correct one.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.