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.
About the Properties and Methods Guide
About the sample scripts