Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

socket io get ip

var io = require('socket.io').listen(server);

io.sockets.on('connection', function (socket) {
  var address = socket.handshake.address;
  console.log('New connection from ' + address.address + ':' + address.port);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #socket #io #ip
ADD COMMENT
Topic
Name
5+6 =