IPAddr Property (.NET)

 

The IPAddr property returns the IP address for the current web site visitor. Note that this property can only be used when the CountryHawk component is used within the context of an ASP.NET application. This is a static property.

Syntax:

 userIP = CountryObj.IPAddr

Returns:

Returns the IP address of the current visitor as a string.

VB.NET Example:

dim userIP as string = CountryObj.IPAddr

Response.Write("Your IP address is: " + userIP)

C# Example:

string userIP = CountryObj.IPAddr;

Response.Write("Your IP address is: " + userIP);

 

Note: See the ch_basics_vb.aspx and other samples for more information.

Note: This property is read-only.