This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
socket.remoteAddress in undefined when connecting using nmap #16523
Closed
Description
I pointed nmap to opened socket in node. Can anyone shed a light, why remoteAddress is undefined? In what case it's possible and how to prevent such behaviour? Tried on osx and linux.
var net = require('net');
var server = net.createServer(function (socket) {
console.log(socket.remoteAddress);
});
server.listen(12345, '127.0.0.1');
output: undefined
nmap 127.0.0.1 -p 12345
node versions: 0.10.38 and 0.12.2
Metadata
Metadata
Assignees
Labels
No labels