question

mbneto avatar image
mbneto asked

Listening to multiple ports on custom servers

Hi,


In our UE4-based game, we are planning to use the UE4's Online Beacon feature so clients can communicate with servers before commiting to a full gameplay connection. The beacon system uses a separate socket for this, so we need to know if it's OK for the server to listen to two ports instead of only one.

We plan to simply take the port the instance was assigned and add 2000 to it (so port 9001 would be for "game" and 11001 for "service"). Is that OK?

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

Nope, that wouldn't work, as the 11xxx range isn't open. But the full 9xxx range is. So, assuming you won't have more than 200 instances of your game running on a server host, you could add 200 to the port you get back, and use that.

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.