Introduction:
Sometime we need to use IP Address of Client System in our
application, just for record or for other purpose..
In this article i will explain how to get IP Address of the client using asp.net. To get the IP Address of the client in ASP.NET , you can use the property UserHostAddress of the current Request object. The following example shows you how to get the IP Address address of a client. I have written the code on the button click event.
In this article i will explain how to get IP Address of the client using asp.net. To get the IP Address of the client in ASP.NET , you can use the property UserHostAddress of the current Request object. The following example shows you how to get the IP Address address of a client. I have written the code on the button click event.
C#.Net Code to get
IP Address of the client