Code Monkey home page Code Monkey logo

ip2geo's Introduction

IP address to Geo location

Simple API to get geo location co-oridnates.

Description

This command line uitility can be used to obtain the physical location of remote server.

Getting Started

Dependencies

python version 3.x.x if using Docker version 24.0.6

Installing & Running on Linux/Mac

  • Clone this repository to your pc (linux/mac)

Build and Run with Docker

  • cd ~/<repo_path>/ip2geo
  • docker build --tag ip2geo_latest
  • docker run ip2geo_vs <ip_address>

e.g on debian

$ sudo docker run ip2geo_vs 142.250.200.36
$ sudo docker run ip2geo_vs www.google.com

Build & Run from source code

  • cd ~/<repo_path>/ip2geo
  • pip install -r requirements.txt
  • python3 ip2geo.py <Domain_name>//
python3 ip2geo.py www.google.com 
python3 ip2geo.py 172.217.18.4
python3 ip2geo.py 0000:0000:0000:0000:0000:ffff:d8ef:2678

Installing & Running on Windows

Help

-h on the tool will provide the following

usage: IP to GEO LOCATION [-h] [-v] ip_address

script prints GEO location coordinates in latittude,longitude format for a
given TCP/IP address

positional arguments:
  ip_address     Enter a valid ip address or url i.e 142.251.46.228 or
                 www.google.com

options:
  -h, --help     show this help message and exit
  -v, --verbose  increase output verbosity

Authors

Contributors names and contact info

Vairavan Sockalingam

Version History

  • 0.1
    • Initial Release

ip2geo's People

Contributors

vsock avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.