How to get client ip address in asp.net.
Asked
Active
Viewed 911 times
2 Answers
7
HttpRequest.UserHostAddress
http://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostaddress.aspx

Raj Kaimal
- 8,304
- 27
- 18
-
Where are you these days. Any update. I have no update from your blog after your last post. – Chinook May 23 '12 at 14:00
4
i used that in ASP.NET 3.5
string ip = Request.UserHostAddress();

Neil Knight
- 47,437
- 25
- 129
- 188

Govind Malviya
- 13,627
- 17
- 68
- 94