babofitos / node-steamid-converter

convert 64bit steamid to text STEAM_x:y:z format and vice versa
14 stars 1 forks source link

Convert server_steam_id #6

Open monotv opened 7 years ago

monotv commented 7 years ago

Is there a way to convert a server_steam_id to an ip:port?

babofitos commented 7 years ago

I don't think so. You can take a look at the steam api docs to make sure.

monotv commented 7 years ago

Thanks for the feedback. I am still tinkering with this :) I've managed to convert it to a Steam3ID looking something like this: [A:1:43436143802:8601]. This format also shows up in the console if one connects to a game but after showing the ip;port. Now how would I connect to that or can this be translated to an ip:port somehow? I think there has to be an algorithm that converts this to an ip:port but I am not sure where to look.

popey456963 commented 7 years ago

@monotv In case you're still looking into the problem, you can't translate one to another without contacting Steam servers. They're randomly assigned. You can tell because they can change despite your IP and port staying the same.