Skip to content

IP Geolocator fetches detailed location info for any IP address using APIs, with animated output for a cool user experience.

Notifications You must be signed in to change notification settings

imlainwired/IP-Geolocator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📍 IP-Geolocator:

Alt Text

  • This script fetches geolocation information about an IP address using APIs. It provides details such as the country, city, region, timezone, and more. The input/output is displayed in a visually appealing bright bold white color for better readability.

Features

  1. Fetches public IP address automatically.
  2. Provides geolocation details of any IP address.
  3. Bright bold white formatting for input/output.
  4. Error handling for invalid inputs.
  5. Typewriter animation for a smooth output experience.
  6. Displays Google Maps link for the geolocation.

Required Dependencies:

  • Install the cURL library:
sudo apt-get install libcurl4-openssl-dev
  • Install the nlohmann/json library:
sudo apt-get install nlohmann-json3-dev

Installation:

  • Clone the repository to your local machine:
git clone https://github.com/neooverride/IP-Geolocator.git
  • Navigate into the project directory:
cd IP-Geolocator

Compilation Instructions:

g++ ipGeolocator.cpp asciiArt.cpp -o outputfile -lcurl
  • Run the compiled binary:
./outputfile

Expected Output:

  • When prompted:
Do you want to use your public IP address (y/n)?
  • If you enter Y/y then it fetches IP geolocation of your router's IP.
  • When I entered Google's public DNS IP in the given image, this information was displayed.

Alt Text

APIs Used:

  • ipify: For fetching public IP addresses.
  • ipinfo: For geolocation and IP details.

Libraries Used:

About

IP Geolocator fetches detailed location info for any IP address using APIs, with animated output for a cool user experience.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages