question

entelicon avatar image
entelicon asked

Game Server

In my server build my networking system is needing the address and port the server is currently running on so it can detect when a player joins.

I'm not 100% sure how to get this information. Any idea on this?

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

When you add a build to PlayFab for hosting, we automatically configure the command line with a number of parameters. The ServerHostname is the IP Address, and ServerPort is the port to listen on for client connections. I'd recommend reviewing this tutorial, for more info on hosting custom game servers in PlayFab: https://api.playfab.com/docs/tutorials/landing-tournaments/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.

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.