Connect to Steam dedicated server via raw IP?
Hello there, I am using Steam for multiplayer, so I can easily browse and connect to my dedicated servers using the Steam server browser or my in-game implementation. It is all working good, but recently I started integrating Amazon GameLift, a matchmaking tool by Amazon which hosts my dedicated servers on their EC2 instances. When matchmaking was successful, I get a raw IP and port back, and I now try to connect to it, but "open ip:port" won't work, neither ClientTravel does. It tries to connect, then the log's silent for a minute, and then the connection times out. I found out that Unreal connects to Steam servers by using "open steam.", but I don't have that ID, only the IP and port.
Is this normal that we can't connect to a IP when using Steam, or am I just too dumb?
asked Jun 01 '18 at 10:28 AM in C++ Programming
I found a solution to this. Steam provides the following function: PingServer.
So using that function on the raw IP and Port (query port though, so in my AWS example, I have to calculate the query port myself) will return me a gameserveritem_t &server in the callback, which contains the steam ID of the server. Then the game can connect using
as a console command.
answered Oct 22 '18 at 08:36 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here