This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Utility to fetch your external IP address

Project Description

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 phoemur@gmail.com 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.6 (2014-10-30)
  • 45 servers
  • Simpler is better
0.5.2 (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
Release History

Release History

This version
History Node

0.6

History Node

0.5.2

History Node

0.5.1

History Node

0.4

History Node

0.3.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
ipgetter-0.6.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Oct 30, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting