المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to get Current User IP Address for my Intranet site



C# Programming
07-06-2009, 01:30 PM
Hi All,

Can u help me how to get current user IP Address for my Intranet Site,

I have tried with below codes but its not working when i place my page in

live server....

i)HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]

this is working locally when i place in server its showing default gateway
for that system http://www.barakasoft.com/script/Forums/Images/smiley_cry.gif

ii)Request.ServerVariables["REMOTE_Host"]

could you plz help me to fix my issue.