Yes. According to the code you sent..
I think you are overwriting the variable.
its:
Scales = require( './scales.class.js' );
var one = new Scales( "10.0.20.104", 8899 );
one.Init().Process();
var one = new Scales( "10.0.20.105", 8898 );
one.Init().Process();
it should be:
Scales = require( './sca
I have used net sockets library, and have made a class, i initialize two
objects with different IP's and same PORT number, when i get connect with
both objects, both show the IP of last connected object, even i have used
this.Socket = new require( 'net' ).Socket(); in the constructor :(
Reason