I have a list of ip addresses many of which will be from a university network. What is the best way to find out which universities are in this list?
Colleges can track keystrokes to identify typing patterns for a particular student, track a computer's IP address and even require biometric identification through iris or fingerprint recognition.
Presumably they detect your IP address that you access the online exam with. This can tell them roughly where your're accessing the exam from to a reasonable level. Officially they can detect it down to your town or closer, but more realistically they can do it to the country.
“IP addresses can be found for assignments that can be graded,” said Powers. So basically, if you and a bunch of kids from your class meet up at your apartment to work on the quiz together, your professor can deduce from your IP addresses that you all cheated together.
No Internet Protocol (IP) address database can provide the exact physical address of an IP address location. At best, you'll get the exact city in which the user of the IP is located. Only the Internet Service Provider (ISP) can provide an exact physical address of an IP.
You could use http://ipinfo.io (a service I built) for this. Here's some example output from the API:
$ curl ipinfo.io/128.32.0.1
{
"ip": "128.32.0.1",
"hostname": "No Hostname",
"city": "Berkeley",
"region": "California",
"country": "US",
"loc": "37.8668,-122.2536",
"org": "AS25 University of California at Berkeley",
"postal": "94720"
}
Notice the org field, "AS25 University of California at Berkeley". You can get just those details by appending /org to the URL:
$ curl ipinfo.io/128.32.0.1/org
AS25 University of California at Berkeley
You can do a bulk lookup of your IP addresses by putting them in a file and running the following command:
$ cat ips.txt | xargs -I% curl -s http://ipinfo.io/%/org | paste ips.txt -
128.32.0.1 AS25 University of California at Berkeley
128.62.76.244 AS18 University of Texas at Austin
24.32.142.2 AS7018 AT&T Services, Inc.
171.64.84.194 AS32 Stanford University
18.9.44.47 AS3 Massachusetts Institute of Technology
67.188.232.130 AS7922 Comcast Cable Communications, Inc.
You can find out more details about the API at http://ipinfo.io/developers.
Universities and colleges used to be their own Internet Service Provider (ISP) and you should be able to get these universities.
I played with a world uinversity names database collected from LinkedIn and Webometric and with an old IP-ISP database I had under my hand (dating from 2012) to get a list of about 5800 universities / colleges.
The list is probably not exhaustive because the name of the IP-ISP database may differs from the university names database and because the IP-ISP database could be a bit outdated.
But, it should be a good start if you don't want to use any API.
Then, you should be able to do something similar to:
SELECT * FROM `isp_universities`
WHERE INET_ATON('192.16.181.4')
BETWEEN from_dec AND to_dec
to obtain:
192.16.181.0 to 192.16.181.255
Massachusetts Institute of Technology
http://www.mit.edu/
Take a look here, I pushed the database on Bitbucket.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With