This documentation is archived and is not being maintained.
HttpRequest.UserHostAddress Property
.NET Framework 1.1
Gets the IP host address of the remote client.
[Visual Basic] Public ReadOnly Property UserHostAddress As String [C#] public string UserHostAddress {get;} [C++] public: __property String* get_UserHostAddress(); [JScript] public function get UserHostAddress() : String;
Property Value
The IP address of the remote client.
Example
The following example assigns the IP address of the remote client to a string variable.
[Visual Basic] Dim ClientIP As String ClientIP = Request.UserHostAddress [C#] String ClientIP; ClientIP = Request.UserHostAddress; [C++] String* ClientIP; ClientIP = Request->UserHostAddress; [JScript] var clientIP : String = Request.UserHostAddress
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
HttpRequest Class | HttpRequest Members | System.Web Namespace
Show: