Open PeterL1n opened 8 years ago
socketIOClient.getRemoteAddress(); //Here is you Client IP
This will not work behind a proxy server like nginx.
How can I parse headers like X-Forwarded-For or X-Real-IP ?
In nodejs is works like: var ip = socket.handshake.headers['x-real-ip'];
How can I implement it in netty-socketio?
UPDATE: it is simple :+1:
String ip = client.getHandshakeData().getSingleHeader("X-Real-IP");
Is there way to obtain the ip address of the client? That would be really useful.