SENPAY98K Posted September 11, 2021 Report Posted September 11, 2021 I am trying to connect my bots with proxies but all i get is Auth Error with community module, while it logs successfully with client module but i don't know if the proxy works or ignored. @Dr. McKay Could you check if iam missing something? // Modules const request = require('request'); const Steam = require('steam-client'); const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const SteamCommunity = require('steamcommunity'); const TradeOfferManager = require('steam-tradeoffer-manager'); const config = require('./config.json'); let proxyUrl = 'https://144.202.113.90:8080'; let proxifiedRequest = request.defaults({ 'proxy': proxyUrl }); let community = new SteamCommunity({ request: proxifiedRequest }); let ProxyClient = new Steam.CMClient(); ProxyClient.setHttpProxy(proxyUrl); let client = new SteamUser(ProxyClient); const manager = new TradeOfferManager({ steam: client, community: community, language: 'en' }); const logOnOptions1 = { accountName: config.accountName0, password: config.password0, twoFactorCode: SteamTotp.generateAuthCode(config.twoFactorCode0) }; client.logOn(logOnOptions1); client.on('loggedOn', () => { console.log('BOOSTSENPAY00 Logged into Steam'); console.log('-------------------------------'); client.setPersona(SteamUser.EPersonaState.Online); client.gamesPlayed(440); }); community.login({ accountName: config.accountName1, password: config.password1, twoFactorCode: SteamTotp.generateAuthCode(config.twoFactorCode1) }, function (err, sessionID) { if (err) { console.log(config.accountName1 + ' Unable To Auth'); }; if (!err) { console.log(config.accountName1 + 'Successfully Logged On sessionID: ' + sessionID); }; }); OUTPUT: Quote
Dr. McKay Posted September 12, 2021 Report Posted September 12, 2021 Check what the actual error message is in the err. Quote
SENPAY98K Posted September 12, 2021 Author Report Posted September 12, 2021 8 hours ago, Dr. McKay said: Check what the actual error message is in the err. Here's the error BOOSTSENPAY00 Logged into Steam ------------------------------- BOOSTSENPAY01 Unable To Auth Error: tunneling socket could not be established, cause=connect ECONNREFUSED 144.202.113.90:8080 at ClientRequest.onError (C:\Users\SENPAY98K\Desktop\test\node_modules\tunnel-agent\index.js:177:17) at Object.onceWrapper (events.js:482:26) at ClientRequest.emit (events.js:375:28) at TLSSocket.socketErrorListener (_http_client.js:475:9) at TLSSocket.emit (events.js:375:28) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:82:21) { code: 'ECONNRESET' } Quote
Dr. McKay Posted September 13, 2021 Report Posted September 13, 2021 Your proxy refused your connection. Quote
SENPAY98K Posted September 13, 2021 Author Report Posted September 13, 2021 3 hours ago, Dr. McKay said: Your proxy refused your connection. Thanks for the fast reply Now i should use steam-user library for connecting, but i am still confused if it is really using the proxy. Is there a way to check if the steam-user library is using a proxy or not ? something that log the currect ip maybe! Quote
Dr. McKay Posted September 14, 2021 Report Posted September 14, 2021 Yes, once you're logged on you can check the publicIP property of the SteamUser object. SENPAY98K 1 Quote
SENPAY98K Posted September 14, 2021 Author Report Posted September 14, 2021 1 hour ago, Dr. McKay said: Yes, once you're logged on you can check the publicIP property of the SteamUser object. Thanks, i must haven't check clearly. 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.