IPAddr Property

The IPAddr property returns the IP address associated with the currently initialized CountryHawk object.

Syntax:

 ipAddrAsStr = chObj.IPAddr

Returns:

IP address of initialized chObj object.

Example:

<html>

<% set chObj = Server.CreateObject("cyScape.countryObj")

response.write "Your IP address is " & chObj.IPAddr %>

</html>

Tip: This property is most useful for ASP developers who wish to obtain the current visitor's IP address.

Note: If you use the Initialize method, this property will return the same IP address that was passed into the Initialize method as a parameter.

Note: This property is read-only.

See Also:

About the Properties and Methods Guide

CountryCode property

RegionName Method

RegionCode Property

Initialize method

CountryName method

GetSelectList method

IsValidIP method

IsRestricted method

RegionNameFromCountryCode Method

IsInList method

About the sample scripts