babelshift / SteamWebAPI2

🎮 C# / .NET library that makes it easy to use the Steam Web API. It conveniently wraps around all of the JSON data and ugly API details with clean methods, structures and classes.
MIT License
263 stars 43 forks source link

GetServerSteamIDsByIP() not working #102

Open notevenadeveloper opened 4 years ago

notevenadeveloper commented 4 years ago

Had the same issue than another user already had: https://github.com/babelshift/SteamWebAPI2/issues/71

I know the server is online, from a steam game called: ark survival evolved. It's an Official server with online status and the ip is: 85.190.155.82:27015 Status Online: 3/70 players.

https://api.steampowered.com/ISteamApps/GetServersAtAddress/v1?addr=<85.190.155.82:27015> Retrives me: {"response":{"success":false,"message":"'addr' param should specify a valid IP or IP:queryport"}}

How can I solve this?

53m1k0l0n commented 4 years ago

Had the same issue than another user already had: #71

I know the server is online, from a steam game called: ark survival evolved. It's an Official server with online status and the ip is: 85.190.155.82:27015 Status Online: 3/70 players.

https://api.steampowered.com/ISteamApps/GetServersAtAddress/v1?addr=<85.190.155.82:27015> Retrives me: {"response":{"success":false,"message":"'addr' param should specify a valid IP or IP:queryport"}}

How can I solve this?

This is the right way.

https://api.steampowered.com/ISteamApps/GetServersAtAddress/v1?addr=85.190.155.82

{"response":{"success":true,"servers":[{"addr":"85.190.155.82:27017","gmsindex":65534,"appid":346110,"gamedir":"ark_survival_evolved","region":-1,"secure":true,"lan":false,"gameport":7779,"specport":0},{"addr":"85.190.155.82:27019","gmsindex":65534,"appid":346110,"gamedir":"ark_survival_evolved","region":-1,"secure":true,"lan":false,"gameport":7781,"specport":0},{"addr":"85.190.155.82:27021","gmsindex":65534,"appid":346110,"gamedir":"ark_survival_evolved","region":-1,"secure":true,"lan":false,"gameport":7783,"specport":0}]}}

53m1k0l0n commented 4 years ago

I'm not getting any data back. Even in the browser. Result always empty. "steamUserInterface.GetServerSteamIDsByIPAsync(ip)"

And yes the Servers are Online.

GET https://api.steampowered.com/ISteamApps/GetServersAtAddress/v1?addr= works.

babelshift commented 4 years ago

Since I closed #71, I have since learned that the GetServerSteamIDsByIP endpoint only works with servers that you have tied to your Steam account using this Steam UI.

There are not yet any bindings in this library to use the ISteamApps/GetServersAtAddress endpoint.