Not getting IP Address due to firewall -
i trying implement personalization in website using ip address. because of firewall i'am no able user's original ip address. tried following lines of code
httpcontext.current.request.servervariables["remote_addr"].tostring(); httpcontext.current.request.servervariables["http_x_forwarded_for"].tostring(); httpcontext.current.request.servervariables["http_client_ip"].tostring();
please try these 2
request.servervariables("remote_addr") or request.userhostaddress
Comments
Post a Comment