views:

63

answers:

2
+3  Q: 

client ip address

How to get client ip address in asp.net.

+2  A: 
HttpRequest.UserHostAddress 

http://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostaddress.aspx

Raj Kaimal
A: 

i used that in ASP.NET 3.5
string ip = Request.UserHostAddress;

Govind KamalaPrakash Malviya