Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect ISP (or/and country) by IP Address [duplicate]

Tags:

ip

There are plenty of services over the Internet where we can find out the external IP address of our machine, but also such services usually provide information about Internet provider or country (or both).

So my question is: how can I obtain such information programmatically knowing the IP Address? Are there some public catalogs or some API's for retrieving such kind of information?

like image 958
Dmytro Titov Avatar asked Sep 16 '13 21:09

Dmytro Titov


People also ask

Can you tell the country from an IP address?

It's not like a phone number where you can tell what country it's from by its country code. IP addresses are assigned to companies rather than countries, so you can't tell what country the IP address is from unless you're familiar with the company who owns it.

Is it possible to clone an IP address?

Select the network where the new IP address is located. Select the address with properties that you want to duplicate. Choose Duplicate from the Edit menu. Specify the new IP address in the IP Address field.

Can hackers mimic your IP address?

In a DDoS attack, hackers use spoofed IP addresses to overwhelm computer servers with packets of data. This allows them to slow down or crash a website or network with large volumes of internet traffic while concealing their identity. IP spoofing can be used to obtain access to computers by masking botnets.

Do IP addresses repeat?

Conclusion : All public IPs assigned to Routers of ISPs or Routers connecting to Internet are unique. but private IPs of two hosts can be the same if both are connected to different public networks. So the combination of public and private IP identifies your device uniquely.


1 Answers

use this http://ip-api.com/json/[ip address] example: http://ip-api.com/json/113.14.168.85

output:

{"as":"AS4134 Chinanet","city":"Nanning","country":"China","countryCode":"CN","isp":"China Telecom","lat":22.8167,"lon":108.3167,"org":"China Telecom","query":"113.14.168.85","region":"45","regionName":"Guangxi Zhuangzu Zizhiqu","status":"success","timezone":"Asia/Shanghai","zip":""}
like image 174
Fthr Avatar answered Oct 31 '22 11:10

Fthr