seishun / node-steam

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

I'm trying to implement proxies. Maybe someone who knows more about the module can help. #451

Closed cryptodescriptor closed 5 years ago

cryptodescriptor commented 5 years ago

https://github.com/krisives/proxysocket/blob/master/proxysocket.js

Theoretically it should be possible to implement TCP proxies to get around the steam server soft ip blocks. I need this for an application I am building to fetch csgo statistics in realtime. I have noticed the connection.js is significant (duh the name tells me that :P).

I'm not very good with node but what I have tried is:

var util = require('util');
//var Socket = require('net').Socket;
var Socket = require('proxysocket');
var MAGIC = 'VT01';

util.inherits(Connection, Socket);

function Connection() {
  Socket.call(this, '212.46.209.134', 4145);
  this.on('readable', this._readPacket.bind(this));
}

It seems to be sending packets because I can see them on wireshark, but it sends 5 packets and then hangs. Probably does not authenticate with steam at all, which got me thinking it is probably some issue with event emmiters not picking up on something. If someone could help me I would be most grateful.