How to fetch User's IP Address

Newbie Member
13Sep2011,10:48   #1
kanetkar.rucha@gmail's Avatar
I want User's IP Address stored in my access database and it showed in my website when user use my feedback page.
I want to display message to user ("Your IP Address Is :")
My site is built in ASP.NET (C#) and database in in Access.
Please help me and send me the detailed code and where it to put on page.
Thanks in advanced
Please somebody help me
Go4Expert Founder
13Sep2011,10:56   #2
shabbir's Avatar
Moved to ASP forum.
Go4Expert Member
28May2012,21:29   #3
bzforum's Avatar
You can use this code
PHP Code:
Response.Write(Request.ServerVariables["remote_addr"]); 
or

PHP Code:
Response.Write(Request.UserHostAddress); 
hope it helped..