You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems, the client always connects to local IP. Not sure where I went wrong?
myserverip is Java socket server IP
const Synket = require('synket');
try{
var connection = new Synket({url: 'myserverip', port: 9811});
var result = connection.send('command-to-get-somedata');
console.log(result);
}catch(err){
console.log(err);
}
Error: connect ECONNREFUSED 127.0.0.1:9811
at Object.exports._errnoException (util.js:1029:11)
at exports._exceptionWithHostPort (util.js:1052:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
at Object.send (/home/vijay/Work/RSS/backofficenode/node_modules/synket/src/Synket.js:22:10)
at Object.<anonymous> (/home/vijay/Work/RSS/backofficenode/services/util/socketService.js:7:29)
The text was updated successfully, but these errors were encountered:
It seems, the client always connects to local IP. Not sure where I went wrong?
myserverip is Java socket server IP
const Synket = require('synket');
try{
var connection = new Synket({url: 'myserverip', port: 9811});
}catch(err){
console.log(err);
}
Error: connect ECONNREFUSED 127.0.0.1:9811
at Object.exports._errnoException (util.js:1029:11)
at exports._exceptionWithHostPort (util.js:1052:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
The text was updated successfully, but these errors were encountered: