question

removed avatar image
removed asked

Are PlayFab servers using a public static IP?

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.

brendan avatar image
brendan answered

Thanks, that got me the info I wanted to see on the connection failure. Since you have a game session active right now (an active game server instance), I signed into the server to confirm the game server exe's behavior. What I'm seeing (below) is that your server isn't actually listening on its assigned port, so there's no way for the packet to be delivered, causing the error you see. Can you try opening the port in your server code?

PS C:\Users\Administrator> netstat -an
Active Connections
  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
  TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:843            0.0.0.0:0              LISTENING
  TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:5985           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:8000           0.0.0.0:0              LISTENING
  TCP    0.0.0.0:47001          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49156          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49160          0.0.0.0:0              LISTENING
  TCP    0.0.0.0:49161          0.0.0.0:0              LISTENING
  TCP    127.0.0.1:50247        127.0.0.1:47001        TIME_WAIT
  TCP    172.37.6.177:139       0.0.0.0:0              LISTENING
  TCP    172.37.6.177:3389      24.16.35.119:12090     ESTABLISHED
  TCP    172.37.6.177:8000      35.164.29.233:62443    ESTABLISHED
  TCP    172.37.6.177:50249     169.254.169.254:80     CLOSE_WAIT
  TCP    [::]:80                [::]:0                 LISTENING
  TCP    [::]:135               [::]:0                 LISTENING
  TCP    [::]:445               [::]:0                 LISTENING
  TCP    [::]:3389              [::]:0                 LISTENING
  TCP    [::]:5985              [::]:0                 LISTENING
  TCP    [::]:8000              [::]:0                 LISTENING
  TCP    [::]:47001             [::]:0                 LISTENING
  TCP    [::]:49152             [::]:0                 LISTENING
  TCP    [::]:49153             [::]:0                 LISTENING
  TCP    [::]:49154             [::]:0                 LISTENING
  TCP    [::]:49155             [::]:0                 LISTENING
  TCP    [::]:49156             [::]:0                 LISTENING
  TCP    [::]:49160             [::]:0                 LISTENING
  TCP    [::]:49161             [::]:0                 LISTENING
  UDP    0.0.0.0:500            *:*
  UDP    0.0.0.0:3389           *:*
  UDP    0.0.0.0:3544           *:*
  UDP    0.0.0.0:4500           *:*
  UDP    0.0.0.0:5355           *:*
  UDP    172.37.6.177:137       *:*
  UDP    172.37.6.177:138       *:*
  UDP    172.37.6.177:61640     *:*
  UDP    [::]:500               *:*
  UDP    [::]:3389              *:*
  UDP    [::]:4500              *:*
  UDP    [::]:5355              *:*
  UDP    [fe80::3ca9:f37:f2c9:2dc1%13]:546  *:*
  UDP    [fe80::cdab:a769:626c:9f5e%12]:546  *:*
PS C:\Users\Administrator>
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

Since you've tagged this "Custom Game Servers", I take it you're asking about game servers we host on your behalf? In that case, the answer is no, we don't have a set of static IP addresses we give to each title for all their custom game servers. The servers are spun up in EC2, in the regions you specify in your build configuration, and can have any IP address in the valid range for the specific datacenter.

7 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.

removed avatar image removed commented ·

What I'm wondering is if there is any set-up needed on the server-side like firewall or ports, etc. because I'm not sure why I'm unable to connect to the server when every other program or game works on my PC? Even P2P is working.

0 Likes 0 ·
brendan avatar image brendan removed commented ·

There's no firewall on the server, no. If you're not able to connect to the assigned IP and Port we specify in the command line info passed to the instance (and which is returned to the client), can you give us some specifics on your test case (Title ID, details of the API calls you're making, etc.)?

0 Likes 0 ·
removed avatar image removed brendan commented ·

Title ID is 2332.

I've just been trying to get the demo PlayFabGameServerClient working but it is not connecting.

0 Likes 0 ·
Show more comments
removed avatar image removed commented ·

Yes, I have a .pcapng but the site won't let me upload it. I've emailed it to you.

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.