Giter Club home page Giter Club logo

ipgetter's Introduction

About

This module is designed to fetch your external IP address from the internet. It is used mostly when behind a NAT. It picks your IP randomly from a serverlist to minimize request overhead on a single server

If you want to add or remove your server from the list contact me on github

Copyright © 2014 [email protected] This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

API Usage

>>> import ipgetter
>>> myip = ipgetter.myip()
>>> myip
   '8.8.8.8'

Shell Usage

$ python -m ipgetter    
'8.8.8.8'

Installation

# pip install ipgetter

Or download the tarball or git clone the repository and then:

# python setup.py install

ChangeLog

0.5.1 (2014-08-12)

  • Fix servers (current 42 servers)
  • License

0.4 (2014-03-01)

  • Serverlist = 44 servers
  • Added timeout for getting the IP

0.3.2 (2014-03-01)

  • Fix distutils issues

0.2 (2014-03-01)

  • Fix python 2 backwards compatibility

0.1 (2014-02-28)

  • You can retrieve your IP.
  • Serverlist = 16 servers

ipgetter's People

Contributors

phoemur avatar

Watchers

James Cloos 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.