IPAddr Property

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


 ipAddrAsStr = chObj.IPAddr


IP address of initialized chObj object.



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

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


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