nodejs-websocket icon indicating copy to clipboard operation
nodejs-websocket copied to clipboard

connection.socket.remoteAddress returns ::1 even when client has another IP

Open peq42 opened this issue 5 years ago • 0 comments

I'm trying to use "connection.socket.remoteAddress" to get the clients IP in the server part of my game to make a ban-by-IP system, but it is returning "::1" even if client and Server have different IPs

Is that a bug in the library? Are there other ways to get the client's IP?

peq42 avatar Jul 10 '19 02:07 peq42