asp.net.ph

Request.UserHostAddress Property

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;

Property Value

The IP address of the remote client.

Example

The following example shows the simplest way to retrieve and display the UserHostAddress for the current URL request.

<%= Request.UserHostAddress %>

 Show me 

See Also

HttpRequest Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph