question

DontAsk Games avatar image
DontAsk Games asked

Ports set up in PlayFab are closed

We're trying to set up ports for our game, and we use TCP for actions and UDP for movement.

When we set them up in PlayFab, we get 30000 for TCP and 30100 for UDP. In this case the players spawn (TCP communication) but can't move (UDP). If we reverse the ports (30000 UDP and 30100 TCP) the players don't even spawn. From this we can conclude that port 30100 is closed.

I tested this with a port checker and both ports come back closed.

Our connection flow goes as follows:

Server:

1. MultiplayerAgent.Start()

2. MultiplayerAgent.ReadyForPlayers()

3. GetServerConnectionData

3. Initialize packets and start listening on TCP and UDP - on ports returned by the previous call (separate threads, so not a blocking issue)

Client:

1. Matchmaking

2. GetMatch()

3. Load new scene and connect on the IP and ports returned by GetMatch

Any help would be appreciated.

multiplayerMatchmaking
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

·
Rick Chen avatar image
Rick Chen answered

Was the server still active when you test it with a port checker? Could you please follow this document Connect directly to debug game servers to debug your game servers and monitor the TCP and UDP packets?

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.