give one ip, find out which contry
Answers were Sorted based on User's Feedback
Answer / sunil
You can use simple ASP script to lookup country code/name
from any ip addresses
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ranjita
hi sunil
can you give me the code for that or can you explain in detail
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / 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 |
what are the difference between ANSI C and Let Us c and Turbo C
main() { clrscr(); } clrscr();
what are advantages of U D F?
What is use of null pointer in c?
Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?
How does #define work?
how to generate the length of a string without using len funtion?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What does calloc stand for?
write a c program to find the square of a 5 digit number and print the result.
5 Answers Accenture, Sasken, Vimukti Technologies,
what will be the output: main(){char ch;int a=10;printf("%d",ch);}
36 Answers Accenture, TCS, Wipro,
i am using gsm modem ! I USE CMGL COMMAND TO DISPLAY THE LIST OF MESSAGES ! I WANT TO READ EACH MESSAGE ONE BY ONE AND GET EACH MESSAGE INDEX USING C PROGRAM ! THE RESPONSE OF THE MODULE AFTER AT+CMGL IS ---CMGL: 1,"REC READ","+85291234567",,"07/05/01,08:00:15+32",145,37 It is easy to list SMS text messages.---- I WANT THE PROGRAM TO GET THE NUMBER "37"{MESSAGE LENGTH} AS WELL AS "1"(MESSAGE INDEX NUMBER" PLEASE HELP