Jump to content
McKay Development

Search the Community

Showing results for tags 'proxy'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

Found 8 results

  1. Hi, in the future I plan to have more bots in one script they will have functions that will get info from steam pages and I would like to avoid limits. I have made such a solution which works with request.. And I would like to ask if there is another option ? proxy.bot = 'http://xx:xx@xxx:xxx' steamUser.bot = new SteamUser({ httpProxy: proxy.bot }) request.bot = Request.defaults({ forever: true, proxy: proxy.bot }) steamCommunity.bot = new Steamcommunity({ request: request.bot }) steamUser.bot.logOn({ refreshToken: 'xxx' }) steamUser.bot.on('loggedOn', () => { console.log('Logged on!') console.log(steamUser.bot.publicIP) // * to eq proxy IP }) steamUser.bot.on('webSession', (sessionID, cookies) => { steamCommunity.bot.setCookies(cookies) steamCommunity.bot.loggedIn((err, loggedIn) => { if (err) console.log(err) if (loggedIn) console.log('Logged in!') const { request: SCrequest } = steamCommunity.bot SCrequest.get('https://api.ipify.org?format=json', (err, res, body) => { if (err) console.log(err) console.log(JSON.parse(body).ip) // * to eq proxy IP }) SCrequest.get('https://steamcommunity.com/my/profile', (err, res) => { if (err) console.log(err) console.log(res.request.uri.href) // * return /profiles/steamID }) }) })
  2. Hey! I'm trying to make some requests with httpProxy, but I'm facing issues already with the initial connection. This is my code: import SteamUser from 'steam-user'; const client = new SteamUser({ httpProxy: 'http://USER:[email protected]:60000', // webCompatibilityMode: true, }); client.on('debug', (msg) => console.log(msg)); client.logOn({ anonymous: true }); client.on('loggedOn', async function (details) { console.log('Logged into Steam as ' + client.steamID.getSteam3RenderedID()); console.log('with public ip: ' + client.publicIP); client.logOff(); process.exit(); }); I'm using Node v16.20.2 and compared an older version of steam-user (4.19.4) and newer version (5.0.4) with a same/similar result. 4.19.4 debug log: [T1] Connecting to TCP CM: 205.196.6.214:27018 and stays stuck here. 4.19.4 debug log with webCompatibilityMode: true: Forcing protocol to EConnectionProtocol.WebSocket because webCompatibilityMode is enabled [W1] Randomly chose WebSocket CM ext3-sto2.steamserver.net:27024 [W1] WebSocket disconnected with error: unable to get local issuer certificate [W1] Handling connection close and keeps repeating a similar message over and over again. 5.0.4 debug log: GetCMListForConnect error: unable to get local issuer certificate Emitted 'error' event on SteamUser instance at: at SteamUser._doConnection (/node_modules/.pnpm/[email protected]/node_modules/steam-user/components/09-logon.js:299:10) at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY', proxyConnecting: false Repeats the first line few times and then throws the error. 5.0.4 debug log with webCompatibilityMode: true: Forcing protocol to EConnectionProtocol.WebSocket because webCompatibilityMode is enabled GetCMListForConnect error: unable to get local issuer certificate Emitted 'error' event on SteamUser instance at: at SteamUser._doConnection (/node_modules/.pnpm/[email protected]/node_modules/steam-user/components/09-logon.js:299:10) at processTicksAndRejections (node:internal/process/task_queues:96:5) { code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY', proxyConnecting: false Repeats the first 2 lines few times and then throws the error. I'd happily provide any more details if necessary. I would really appreciate any directions or insight into what might cause the issue.
  3. Problem with connecting proxy. There are two outcomes when connecting a proxy: 1. The proxy is working - the code is being executed. 2. The proxy is working - but the code is not executed and there is no error in the console, because of this I cannot trace the problem and solve it. How can I track this error? I will be grateful for help Code: const SteamClient = require('steam-client'); const SteamUser = require('steam-user'); let user = new SteamUser({ singleSentryfile: false, promptSteamGuardCode: false, dateDirectory: null, httpProxy: 'http://IP:PORT' }); user.logOn({ accountName: 'USERNAME', password: 'PASSWORD' }); user.on('error', e => { console.log(e); return; }); user.on('emailInfo', function(address, validated) { if (validated == true) { console.log('Yes', validated); return; } else (validated == false) { console.log('No', validated); return; } });
  4. const Steam = require('steam-client'); const SteamUser = require('steam-user'); let client = new Steam.CMClient(); let user = new SteamUser(client); client.setHttpProxy("http://someIP:somePort/"); user.logOn(credentials); Is this still the way to go for using a proxy or do I have to do something else? I feel like it is not working anymore, because now I am unable to log into my account. (Windows Steam-Client error says something like: "There were too many failed login attempts on your network. Please try again later.") I can login to 2 of my accounts without steamguard but the one with steamguard does not work. PS: I am new to this forum stuff, I hope I did not forget to mention anything.
  5. I want to use proxy when throwing steam profile comments.I need to login for the client and then the community. How can I use proxy here? My Codes : let client = new Steam.CMClient(); data["community"] = new SteamCommunity(); client.setHttpProxy(/*proxy url */); data["client"] = new SteamUser(client); data["client"].logOn(second); data["client"].on('loggedOn', () => { console.log('\n Hesaba giriş yapıldı. \n'); data["client"].setPersona(SteamUser.EPersonaState.Online); data["client"].gamesPlayed(["OkiSource here !!", 440, 570]); }); data["client"].on('webSession', (sessionid, cookies) => { data["community"].setCookies(cookies); }); this code is not working im checking data and showed my server ip not proxy ip. How can i login community and client with proxy.
  6. Can you give an example , how to use proxy. And what type need to use socks5 or http/https?
  7. Hello, I want to connect all my bots via proxy servers to give them separate IP's to connect them to steam for trading and getting users inventory. Yesterday I tried around many hours and could not find any workings solution. I end up with this code: (free proxy's to test only) const steam = require('steam-client'); const request = require('request'); require('request-debug')(request); const SteamUser = require('steam-user'); const SteamCommunity = require('steamcommunity'); const SteamTotp = require('steam-totp'); const TradeOfferManager = require('steam-tradeoffer-manager'); let proxyUrl = 'https://119.28.152.208:80'; let proxifiedRequest = request.defaults({'proxy': proxyUrl}); let community = new SteamCommunity({request: proxifiedRequest}); // // let community = new SteamCommunity(); let steamclient = new steam.CMClient(); steamclient.setHttpProxy('https://119.28.152.208:80'); let client = new SteamUser(steamclient); let manager = new TradeOfferManager({ "community": community, "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "localhost", // Our domain is example.com "language": "en" // We want English item descriptions }); steamclient.on('error', (...data) => console.log('client-error', ...data)); steamclient.on('debug', (...data) => console.log('client-debug', ...data)); // user.on('debug', (...data) => console.log('user-debug', ...data)); // user.on('error', (...data) => console.log('user-error', ...data)); // Steam logon options let logOnOptions = { "accountName": config.steamAccountName, "password": config.steamAccountPassword, "twoFactorCode": SteamTotp.generateAuthCode(config.sharedSecret) }; client.logOn(logOnOptions); let botOnline = false; client.on('loggedOn', function() { botOnline = true; console.log("Logged into Steam"); }); setTimeout(function () { if (!botOnline) { console.log("BOT TIMEOUT - RESTART"); process.exit(); } }, 90 * 1000); client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { console.log("Fatal error since we couldn't get our API key"); console.log(err); setTimeout(() => { process.exit(1); }, 60000); return; } console.log("Got API key: " + manager.apiKey); [........] but if I run this script, I instantly get an error back: error: uncaughtException: Protocol "https:" not supported. Expected "http:" Error: Protocol "https:" not supported. Expected "http:" at new ClientRequest (_http_client.js:55:11) at Object.exports.request (http.js:31:10) at TCPConnection.connect (C:\xampp\htdocs\...\node_modules\steam-client\lib\tcp_connection.js:56:34) at _getServer (C:\xampp\htdocs\...\node_modules\steam-client\lib\cm_client.js:119:20) at CMClient._getServer (C:\xampp\htdocs\...\node_modules\steam-client\lib\cm_client.js:442:3) at CMClient.connect (C:\xampp\htdocs\...\node_modules\steam-client\lib\cm_client.js:97:7) at gotCMList (C:\xampp\htdocs\...\node_modules\steam-user\components\logon.js:171:17) at readFileCallback (C:\xampp\htdocs\...\node_modules\steam-user\components\logon.js:117:4) at C:\xampp\htdocs\...\node_modules\file-manager\node_modules\async\lib\async.js:52:16 the code above uses a https proxy to connect. If I use a http proxy, my console logs looks like Starting services... client-debug connecting to 155.133.230.34:27019 client-debug proxy timed out client-debug socket closed client-debug connecting to 162.254.193.7:27019 or like client-error { Error: HTTP CONNECT 400 Bad Request at ClientRequest.<anonymous> (C:\xampp\htdocs\...\node_modules\steam-client\lib\tcp_connection.js:70:14) at emitThree (events.js:116:13) at ClientRequest.emit (events.js:194:7) at Socket.socketOnData (_http_client.js:395:11) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at Socket.Readable.push (_stream_readable.js:134:10) at TCP.onread (net.js:548:20) eresult: 35 } Does anyone have a working example to connect bots via proxy server? Whats wrong with my code and does it have something to do with steam's change to https in the past? (oAuth login for example which returns https now) Thanks <3
  8. Hello, i want to implement proxies in my bot so i can be a little more safe about hitting the api request limit. I found out that you have to use the same ip for all request once you login, so should i relogin and use a different ip everytime i want to load the inventory or should i i do it when i detected the response is null? Is there a better way of doing it? Thank you.
×
×
  • Create New...