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

Open
opened 2019-07-10 02:23:08 +00:00 by peq42 · 0 comments
peq42 commented 2019-07-10 02:23:08 +00:00 (Migrated from github.com)

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?

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?
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: sitegui/nodejs-websocket#58
No description provided.