question

eswitzer07 avatar image
eswitzer07 asked

Dedicated Server IP Requirements

Just a bit confused on the Server Host / Server IPV6Address for the ServerRegisterGameRequest API call.

What should these IPs be, assuming the instances would be spun up by amazon / azure? Do you not have the register the game if the server is being hosted through playfab?

Just looking for some clarification on this, cheers!

10 |1200

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

brendan avatar image
brendan answered

The RegisterGame API call is only for when you're using externally hosted servers. Have a look at these tutorials, which clarify the way to use our server hosting (https://api.playfab.com/docs/tutorials/landing-tournaments/custom-game-servers) versus external server hosting (https://api.playfab.com/docs/tutorials/external-game-servers).

For our server hosting, the IP Addresses will be automatically assigned (they'll be the IPs for the EC2 servers we get from AWS).

We'll also be making our "game servers 2.0" feature more broadly available in the coming weeks. Here's the blog post talking about the beta: https://blog.playfab.com/blog/introducing-playfab-multiplayer-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.

vanabee avatar image
vanabee answered

Hi Brendan,

I just started testing out PlayFab with my Unity project and running into same problems with IPs as stated above. I am not getting clear server IP shown under SERVER tab. All the rest is OK. Running, max instances etc. But instead of IP adress in (Address) i am getting something like

ec2-3*-***-**-**.eu-west-1.compute.amazon.com.

1.My question is how do i find the servers IP address to configure game client.

2.Do i need to do additional coding into my game server before uploading(building) to PlayFab?

Server and client tested locally. All connections working.

Thank you in advance for your good work and answers.

2 comments
10 |1200

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

eswitzer07 avatar image eswitzer07 commented ·

"ec2-3*-***-**-**.eu-west-1.compute.amazon.com."

^^ This is your server instance - players cant connect to it. You need to run the matchmake function to actually spin up a game (with configured buildIDs, and modes to find a match. If client cant find a match, they should start one up. Be sure to enable "client can start game" in settings

Not sure about your second question. You would just want / need a valid server build.

0 Likes 0 ·
vanabee avatar image vanabee eswitzer07 commented ·

Many thanks. I will jump right into it.

0 Likes 0 ·

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.