seishun / node-steam

Interface directly with Steam servers from Node.js
MIT License
1k stars 181 forks source link

Steam login servers are timing out #434

Closed angel200sdnot closed 5 years ago

angel200sdnot commented 6 years ago

I am unable to login on steam since the attempt is timing out, the only server that is working at the moment is {host: '103.28.54.11', port: 27017} and its commented out

ghost commented 6 years ago

Same problem.

dalexhd commented 6 years ago

Same problem.

seishun commented 6 years ago

I'll update the server list later. As a workaround, save this server list in some file:

[{"host":"155.133.242.9","port":27018},{"host":"185.25.180.15","port":27019},{"host":"185.25.180.15","port":27018},{"host":"185.25.180.14","port":27017},{"host":"185.25.180.15","port":27017},{"host":"155.133.242.9","port":27019},{"host":"155.133.242.9","port":27017},{"host":"185.25.180.14","port":27018},{"host":"185.25.180.14","port":27019},{"host":"155.133.242.8","port":27017},{"host":"155.133.242.8","port":27018},{"host":"155.133.242.8","port":27019},{"host":"162.254.197.40","port":27018},{"host":"155.133.248.50","port":27017},{"host":"155.133.248.51","port":27017},{"host":"162.254.196.68","port":27017},{"host":"162.254.197.41","port":27017},{"host":"162.254.196.67","port":27019},{"host":"155.133.248.53","port":27018},{"host":"155.133.248.52","port":27018},{"host":"162.254.196.67","port":27017},{"host":"162.254.196.67","port":27018},{"host":"162.254.196.83","port":27017},{"host":"162.254.196.84","port":27017},{"host":"155.133.248.52","port":27017},{"host":"162.254.196.68","port":27018},{"host":"162.254.197.40","port":27019},{"host":"155.133.248.51","port":27019},{"host":"155.133.248.52","port":27019},{"host":"155.133.248.53","port":27019},{"host":"155.133.248.50","port":27019},{"host":"155.133.248.53","port":27017},{"host":"162.254.196.68","port":27019},{"host":"162.254.197.42","port":27019},{"host":"162.254.196.84","port":27018},{"host":"155.133.248.50","port":27018},{"host":"162.254.196.83","port":27019},{"host":"162.254.197.42","port":27018},{"host":"162.254.197.41","port":27018},{"host":"162.254.196.84","port":27019},{"host":"162.254.196.83","port":27018},{"host":"162.254.197.40","port":27017},{"host":"162.254.197.41","port":27019},{"host":"155.133.248.51","port":27018},{"host":"162.254.197.42","port":27017},{"host":"146.66.152.11","port":27018},{"host":"146.66.152.11","port":27019},{"host":"146.66.152.11","port":27017},{"host":"146.66.152.10","port":27019},{"host":"146.66.152.10","port":27017},{"host":"146.66.152.10","port":27018},{"host":"208.78.164.10","port":27018},{"host":"208.78.164.9","port":27019},{"host":"208.78.164.13","port":27018},{"host":"208.78.164.9","port":27017},{"host":"208.78.164.12","port":27018},{"host":"208.78.164.10","port":27017},{"host":"155.133.229.251","port":27019},{"host":"155.133.229.251","port":27017},{"host":"208.78.164.14","port":27018},{"host":"208.78.164.12","port":27019},{"host":"208.78.164.13","port":27017},{"host":"208.78.164.9","port":27018},{"host":"208.78.164.14","port":27019},{"host":"208.78.164.11","port":27018},{"host":"208.78.164.10","port":27019},{"host":"155.133.229.250","port":27017},{"host":"208.78.164.12","port":27017},{"host":"208.78.164.11","port":27019},{"host":"155.133.229.250","port":27018},{"host":"155.133.229.251","port":27018},{"host":"208.78.164.11","port":27017},{"host":"155.133.229.250","port":27019},{"host":"208.78.164.13","port":27019},{"host":"208.78.164.14","port":27017},{"host":"162.254.193.7","port":27017},{"host":"162.254.193.47","port":27019},{"host":"162.254.193.7","port":27018},{"host":"162.254.193.46","port":27018},{"host":"162.254.193.6","port":27017}]

And assign it to Steam.servers before logging in.

Also make sure to add a handler for the 'servers' event to prevent this problem in the future.

divslinger commented 6 years ago

@seishun whats the source of your list, so we can fix it ourselves in the future?

seishun commented 6 years ago

The 'servers' event. See example here.

scholtzm commented 6 years ago

Also, Steam has Web API for the list as well: https://api.steampowered.com/ISteamDirectory/GetCMList/v1/?format=json&cellid=0

It's better to use the servers event though.

chetan-northout commented 6 years ago

@seishun when will you commit that server file or is there any way to solve this problem on live iinstance

elboletaire commented 6 years ago

If this is a steam api wrapper, why isn't there a method to retrieve the hosts list on start/init instead of being hardcoded in the code?

I'd suggest adding a new asyncServers method to be able to retrieve them dynamically.

koalayby commented 6 years ago

@seishun I have uncommon the {host: '103.28.54.11', port: 27017}, while the bot still not work. Now not clear where is the problem? Do you know? thanks!

muleyo commented 6 years ago

Hey, I've updated the servers.json for you. Just update the code of ../node_modules/steam/lib/servers.json with the code below, and everything should be fine.

module.exports = [ // Washington, USA {host: '155.133.229.250', port: 27017}, {host: '155.133.229.250', port: 27018}, {host: '155.133.229.250', port: 27019}, {host: '155.133.229.251', port: 27017}, {host: '155.133.229.251', port: 27018}, {host: '155.133.229.251', port: 27019}, {host: '155.133.230.50', port: 27017}, {host: '155.133.230.50', port: 27018}, {host: '155.133.230.50', port: 27019}, {host: '155.133.230.34', port: 27017}, {host: '155.133.230.34', port: 27018}, {host: '155.133.230.34', port: 27019}, {host: '155.133.254.132', port: 27017}, {host: '155.133.254.132', port: 27018}, {host: '155.133.254.132', port: 27019}, {host: '155.133.254.133', port: 27017}, // Virginia, USA {host: '162.254.192.109', port: 27017}, {host: '162.254.192.109', port: 27018}, {host: '162.254.192.109', port: 27019}, {host: '162.254.192.108', port: 27017}, {host: '162.254.192.108', port: 27018}, {host: '162.254.192.108', port: 27019}, {host: '162.254.192.100', port: 27017}, {host: '162.254.192.100', port: 27018}, {host: '162.254.192.100', port: 27019}, {host: '162.254.192.101', port: 27017}, {host: '162.254.192.101', port: 27018}, {host: '162.254.192.101', port: 27019}, // Illinois, USA {host: '162.254.193.46', port: 27017}, {host: '162.254.193.46', port: 27018}, {host: '162.254.193.46', port: 27019}, {host: '162.254.193.47', port: 27017}, {host: '162.254.193.47', port: 27018}, {host: '162.254.193.47', port: 27019}, {host: '162.254.193.6', port: 27017}, {host: '162.254.193.6', port: 27018}, {host: '162.254.193.6', port: 27019}, {host: '162.254.193.7', port: 27017}, {host: '162.254.193.7', port: 27018}, {host: '162.254.193.7', port: 27019}, // Frankfurt, Germany {host: '162.254.197.40', port: 27017}, {host: '162.254.197.40', port: 27018}, {host: '162.254.197.40', port: 27019}, {host: '162.254.197.42', port: 27017}, {host: '162.254.197.42', port: 27018}, {host: '162.254.197.42', port: 27019}, {host: '162.254.197.180', port: 27017}, {host: '162.254.197.180', port: 27018}, {host: '162.254.197.180', port: 27019}, {host: '162.254.197.181', port: 27017}, {host: '162.254.197.181', port: 27018}, {host: '162.254.197.181', port: 27019}, // Amsterdam, Netherlands {host: '155.133.248.53', port: 27017}, {host: '155.133.248.53', port: 27018}, {host: '155.133.248.53', port: 27019}, {host: '155.133.248.52', port: 27017}, {host: '155.133.248.52', port: 27018}, {host: '155.133.248.52', port: 27019}, {host: '155.133.248.50', port: 27017}, {host: '155.133.248.50', port: 27018}, {host: '155.133.248.50', port: 27019}, {host: '155.133.248.51', port: 27017}, {host: '155.133.248.51', port: 27018}, {host: '155.133.248.50', port: 27019}, // Madrid, Spain {host: '155.133.246.69', port: 27017}, {host: '155.133.246.69', port: 27018}, {host: '155.133.246.69', port: 27019}, {host: '155.133.246.68', port: 27019}, {host: '155.133.246.68', port: 27019}, {host: '155.133.246.68', port: 27019}, // London, United Kingdom {host: '146.66.152.11', port: 27017}, {host: '146.66.152.11', port: 27018}, {host: '146.66.152.11', port: 27019}, {host: '146.66.152.10', port: 27017}, {host: '146.66.152.10', port: 27018}, {host: '146.66.152.10', port: 27019}, {host: '162.254.196.83', port: 27017}, {host: '162.254.196.83', port: 27018}, {host: '162.254.196.83', port: 27019}, {host: '162.254.196.67', port: 27017}, {host: '162.254.196.67', port: 27018}, {host: '162.254.196.67', port: 27019}, {host: '162.254.196.68', port: 27017}, {host: '162.254.196.68', port: 27018}, {host: '162.254.196.68', port: 27019}, {host: '162.254.196.84', port: 27017}, {host: '162.254.196.84', port: 27018}, {host: '162.254.196.84', port: 27019}, // Stockholm, Sweden {host: '155.133.242.9', port: 27017}, {host: '155.133.242.9', port: 27018}, {host: '155.133.242.9', port: 27019}, {host: '185.25.180.15', port: 27017}, {host: '185.25.180.15', port: 27018}, {host: '185.25.180.15', port: 27019}, {host: '155.133.242.8', port: 27017}, {host: '155.133.242.8', port: 27018}, {host: '155.133.242.8', port: 27019}, {host: '185.25.180.14', port: 27017}, {host: '185.25.180.14', port: 27018}, {host: '185.25.180.14', port: 27019}, ];

seishun commented 5 years ago

Sorry for the wait - I've fixed it in https://github.com/seishun/node-steam/commit/8f0f68bc244bc02fd38c585bbe956b9546c562a0. I'll be grateful if you can give it a try before I publish a new release to npm (but beware that you need svn and curl to install from git).

dalexhd commented 5 years ago

In my case, every 6 hours by bots restart for security reasons, and on each starts the bot download the newest serverlist and save it on nodemodules. So i dont have this error anytime.

seishun commented 5 years ago

You really don't need to do that because the 'servers' event provides you with the latest server list.