How to get client ip address in asp.net.
No it doesn't. It remains connected, and the response is sent back down the same connection. No need for the HTTP server to know the client's IP address.
When a device is assigned a static IP address, the address does not change. Most devices use dynamic IP addresses, which are assigned by the network when they connect and change over time.
HttpRequest.UserHostAddress
http://msdn.microsoft.com/en-us/library/system.web.httprequest.userhostaddress.aspx
i used that in ASP.NET 3.5string ip = Request.UserHostAddress();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With