sitegui / nodejs-websocket

A node.js module for websocket server and client
MIT License
736 stars 155 forks source link

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

Open peq42 opened 5 years ago

peq42 commented 5 years ago

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?