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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -