Current Client calls request, the server side by the request. The getHeader (" X-ray forwarded - for ") getHeader (" Proxy - the Client - IP ") getHeader (" WL - Proxy - the Client - IP ") getRemoteAddr () methods are tried, are generally taken 127 or 192, doesn't really want to address, such as 124.128.77. *,
Access to this web site http://ip.chinaz.com/, will be able to return to the client's IP address, don't know how to implement,
Don't tell me to let the client to access the site, crawl real IP, this method is feasible, but is not stable, stop taking just over one thousand web site,
Is there a way to more insurance for client side public IP? Thank you,
CodePudding user response:
Access to the address is 127 or 192, etc., the client and the server you are is the machine or the same local area network (LAN)CodePudding user response: