Tracking IP Addresses using ip-api and
Python
Sean Wilkins
Network Engineer & Author
swilkins@infodispersion.com www.infodispersion.com
Module Introduction
Device tracking linked with Use ip-api module and its free
hostnames and IP addresses lookup service
Overview
- IP-API module review
- Concepts Demonstration – IP-API
An IP address or hostname can
be tracked by utilizing ipapi
Can lookup the autonomous system number
Can also lookup the owner
Utilizing shadow server services
Free ASN information lookup
Python Modules
Need to install appropriate modules
• ipapi module – IP lookups
• Socket module – hostname lookups
• ipaddress module – validity of IP address
• Requests module – autonomous system
lookups
• Others include: webbrowser, pprint, sys,
and time
Install with python –m pip install command
Let’s bring all of this together
to obtain the wanted
information and display it
Demo
Begin with IP-API module
Perform additional ASN lookup
Show location plotting with Google Maps
Summary
- IP-API module review
- Concepts Demonstration – IP-API