How to fetch User's IP Address

kanetkar.rucha@gmail's Avatar, Join Date: Sep 2011
Newbie Member
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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Moved to ASP forum.
0
bzforum's Avatar, Join Date: May 2012
Go4Expert Member
You can use this code
PHP Code:
Response.Write(Request.ServerVariables["remote_addr"]); 
or

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