Something seems to be weird / broken. As for node 0.4.7, it looks like http has remoteAddress available at:
- req.connection.remoteAddress
- req.socket.remoteAddress
on https, both of them are undefined, but
- req.connection.socket.remoteAddress
really works. It is not available on http, though, so you need to check carefully. I can not imagine that this behavior was intentional.
source share