You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hey i just notice something wrong with using socket.io for Chat Server
when i use native websockets i get clients real IP
but with socket.io some of my clients ip is 66.249.93.193
hostname is: google-proxy-66-249-93-193.google.com
so what google proxy is doing here? if i just edit my html and remove the socket.io and use only websockets all ip are correct
but when using socket.io i see this 66.249.93.193 ip for more than 20% of my clients
is socket.io using any remote server for sending packets ? that can be privacy problem and problem when i ban client by ip will ban many clients
my method to get client ip is this in nodejs
function getIP(req)
{
var ip =req.connection.remoteAddress ||
req.socket.remoteAddress ||
req.connection.socket.remoteAddress;
return ip.split(":").last(); ' // return last index in array
}
btw the ip i write here is not the only one there is many ips for the same google proxy hostname
any one here know what is this?
The text was updated successfully, but these errors were encountered:
*** As a site owner, how do I perform IP geo-targeting?
The IP address of your device is forwarded to the destination server via the X-Forwarded-For header. Site owners should check for this header to correctly determine the location of the user based on client's IP address.
That issue was closed automatically. Please check if your issue is fixed with the latest release, and reopen if needed (with a fiddle reproducing the issue if possible).
hey i just notice something wrong with using socket.io for Chat Server
when i use native websockets i get clients real IP
but with socket.io some of my clients ip is 66.249.93.193
hostname is: google-proxy-66-249-93-193.google.com
so what google proxy is doing here? if i just edit my html and remove the socket.io and use only websockets all ip are correct
but when using socket.io i see this 66.249.93.193 ip for more than 20% of my clients
is socket.io using any remote server for sending packets ? that can be privacy problem and problem when i ban client by ip will ban many clients
my method to get client ip is this in nodejs
function getIP(req)
{
var ip =req.connection.remoteAddress ||
req.socket.remoteAddress ||
req.connection.socket.remoteAddress;
return ip.split(":").last(); ' // return last index in array
}
btw the ip i write here is not the only one there is many ips for the same google proxy hostname
any one here know what is this?
The text was updated successfully, but these errors were encountered: