System.Web Namespace HttpRequest Class
Gets the IP host address of the remote client.
[ VB ]
Public ReadOnly Property UserHostAddress As String
[ C# ]
public string UserHostAddress {get;}
[ C++ ]
public: __property String* get_UserHostAddress ( );
[ JScript ]
public function get UserHostAddress ( ) : String;
The IP address of the remote client.
The following example shows the simplest way to retrieve and display the UserHostAddress for the current URL request.
<%= Request.UserHostAddress %>
Show me
HttpRequest Members