Using Request.SerVariables ("Remote_ADDR") in ASP to obtain the client's IP address, but if the client is accessible to use the proxy server, the take-off is the IP address of the proxy server, not the real client IP address. To obtain a real IP address of the client through the proxy server, use the request.servervariables ("http_x_forwarded_for") to read. However, it is not paying attention to every proxy server to read the client's true IP with Request.ServerVariables ("http_x_forwarded_for"), and some use this method reads the IP of the proxy server. One thing to note is that if the client does not pass the proxy server to access, the value taken by Request.ServerVariables ("http_x_forwarded_for") will be empty. Therefore, if this method is to be used in the program, it can be processed: <% userip = request.servervariables ("http_x_forwarded_for") if userip = "" "" Remote_ADDR ")%> ie: If the client Through the proxy server, take the value of http_x_forwarded_for, if you do not pass the proxy server, take the value of Remote_ADDR.