Go4Expert

Go4Expert (http://www.go4expert.com/)
-   ASP.NET (http://www.go4expert.com/forums/asp-net/)
-   -   How to fetch User's IP Address (http://www.go4expert.com/forums/fetch-users-ip-address-t26681/)

kanetkar.rucha@gmail 13Sep2011 10:48

How to fetch User's IP Address
 
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.
:worried::worried::worried: Thanks in advanced
Please somebody help me

shabbir 13Sep2011 10:56

Re: How to fetch User's IP Address
 
Moved to ASP forum.

bzforum 28May2012 21:29

Re: How to fetch User's IP Address
 
You can use this code
PHP Code:

Response.Write(Request.ServerVariables["remote_addr"]); 

or

PHP Code:

Response.Write(Request.UserHostAddress); 

hope it helped..


All times are GMT +5.5. The time now is 20:11.