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

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 5 results

  1. 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.
  2. 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.
  3. Can you give an example , how to use proxy. And what type need to use socks5 or http/https?
  4. 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
  5. 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...