UE4+Gamelift client connection fails


Hello!) I have an issue with client/server connection. I created a game session, reserved a player session, got the URL for a client. But when the UE4 client calls ClientTravel("ip+port+?+PlayerSessionId=...), the server's game mode doesn't fire either Login() or PreLogin() functions. Because of that, I can't get a PlayerSessionId from the "Options" argument and validate the PlayerSesssion on the server and Gamelift closes it after 1 minute. When I run a server locally without Gamelift, "Login()" fires as expected. Gamelift health check works great in the server's game mode as well. Please help!

asked 2 years ago302 views
1 Answer
Accepted Answer

Hi Igor, as per my understanding it seems to be that the UE4 client isn't able to send requests to your game sever on GameLift. Have you verified that your GameLift fleet is configured to accept inbound connections on the port it is expecting requests from the client? You can do this by using the update-fleet-port-settings command. Find more documentation here: https://docs.aws.amazon.com/cli/latest/reference/gamelift/update-fleet-port-settings.html

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions