nodejs-websocket
nodejs-websocket copied to clipboard
connection.socket.remoteAddress returns ::1 even when client has another IP
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?