Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

give one ip, find out which contry

Answer Posted / sunil

ASP Script Usage and Sample - you may use the following
features independently

1. Create and destroy the component

' Create an instance of ActiveTarget object
Set ActiveObj = Server.CreateObject("ACTarget.IPGEO")

' Free the instance after use
Set ActiveObj=nothing

2. Get the client visitor's ip address

'Return the ip address of the current visitor
ClientIP = ActiveObj.ClientIP

3. Detect client visitor's country code

'Return the two letters iso country codelike us, uk, jp etc.
VisitorCountry= ActiveObj.ClientRegion

4. Detect client visitor's full country name

'Return full country name like United States, United Kingdom
etc.
VisitorFullCountry = ActiveObj.ClientFullRegion

5. Look up the country code from an ip address

'Custom IP address to two letters country code lookup
IP="150.48.244.170"
IPCountry = ActiveObj.Lookup(CStr(IP))

or

IPCountry = ActiveObj.Lookup("150.48.244.170")


6. Look up the country name from an ip address

'Custom IP address to full country name lookup
IP="150.48.244.170"
IPFullCountry=ActiveObj.FullLookUp(CStr(IP))

7. Resolve a host/domain name to ip address

IP=ActiveObj.DNSLookup("www.microsoft.com")

8. Convert country code to full country name

CountryName=ActiveObj.RegionCodeToName("CA")

9. Check the current status of the component

'It will output ActiveTarget DLL version, ip-country
database version,
' current status, last loaded time, self-test etc.

Response.Write ActiveObj.Version


10. Reload the database when updated

'Only when you get new version of ip-country database, then
use this method to load the new database without restarting
your server or IIS.

ActiveObj.ReloadLibrary

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type is sizeof?

1000


How can I do serial ("comm") port I/O?

1137


Should I learn data structures in c or python?

982


What is d scanf?

1029


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

1079


Are the expressions * ptr ++ and ++ * ptr same?

1090


how to introdu5ce my self in serco

1945


What is the difference between scanf and fscanf?

1204


What is a void pointer? When is a void pointer used?

1024


writ a program to compare using strcmp VIVA and viva with its output.

1982


Which is more efficient, a switch statement or an if else chain?

972


Is javascript written in c?

1021


What standard functions are available to manipulate strings?

1080


shorting algorithmS

2202


How can I ensure that integer arithmetic doesnt overflow?

1088