dgtvc Posted June 21, 2016 Report Posted June 21, 2016 Hi,I have problem because sometimes bot can't get new "webSession" for even 5h. When i am restarting bot he can login but he can't get cookie.Is that problem with steam servers? I saw that steam return's "You don't have permission to access "http://steamcommunity.com/XXXXXXXXXXXXXXX/" on this server. Reference #XX.XXXXXXXXXXXXX".I must set bot for another server by changing ip of steam service? Or is there any way to fix it? Quote
Dr. McKay Posted June 21, 2016 Report Posted June 21, 2016 403s indicate that Steam has blocked your IP due to excessive requests. You need to slow down your request rate, or distribute it between multiple IP addresses. Quote
dgtvc Posted June 21, 2016 Author Report Posted June 21, 2016 But how big markets work? And is there any option to select in nodeJS from what ip i want to request pages from modules? Quote
cookie Posted June 22, 2016 Report Posted June 22, 2016 Yes, there is. Is there a way that we can proxify the whole process? steam-user, steam-community and steam-tradeoffermanager only the last 2 are able to get proxified unlike steam-user we can't pass a request instance. Quote
Dr. McKay Posted June 22, 2016 Report Posted June 22, 2016 https://github.com/DoctorMcKay/node-steam-client#bindlocaladdress-localport Quote
dgtvc Posted June 22, 2016 Author Report Posted June 22, 2016 var Steam = require('steam-client'); var SteamUser = require('steam-user'); var steamClient = new Steam.CMClient(); steamClient.bind("xxx.xxx.xxx.xxx"); steamClient.connect(); steamClient.on('connected', function() { logger.log("conected to steam!"); logToSteam(); }); var steam = new SteamUser(steamClient); var manager = new TradeOfferManager({ "steam": steam, "domain": "localhost", "language": "en", "pollInterval": 8000 }) var details = { "accountName" : acc_nick, "password" : acc_pass }; function logToSteam() { details = { "accountName" : acc_nick, "password" : acc_pass, "twoFactorCode" : SteamTotp.generateAuthCode(acc_secret) }; sha_sentry = require('fs').readFileSync('sentry_'+acc_nick+'.hash'); steam.setSentry(sha_sentry); steam.logOn(details); } Using it like that will work? Quote
cookie Posted June 22, 2016 Report Posted June 22, 2016 https://github.com/DoctorMcKay/node-steam-client#bindlocaladdress-localport Would be perfect if it's possible to use a socks5 Quote
Dr. McKay Posted June 22, 2016 Report Posted June 22, 2016 var Steam = require('steam-client'); var SteamUser = require('steam-user'); var steamClient = new Steam.CMClient(); steamClient.bind("xxx.xxx.xxx.xxx"); steamClient.connect(); steamClient.on('connected', function() { logger.log("conected to steam!"); logToSteam(); }); var steam = new SteamUser(steamClient); var manager = new TradeOfferManager({ "steam": steam, "domain": "localhost", "language": "en", "pollInterval": 8000 }) var details = { "accountName" : acc_nick, "password" : acc_pass }; function logToSteam() { details = { "accountName" : acc_nick, "password" : acc_pass, "twoFactorCode" : SteamTotp.generateAuthCode(acc_secret) }; sha_sentry = require('fs').readFileSync('sentry_'+acc_nick+'.hash'); steam.setSentry(sha_sentry); steam.logOn(details); } Using it like that will work? Yes, although you don't need to connect the CMClient before you log on with SteamUser. Just call client.bind(ip); and then you can immediately do user.logOn(details); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.