About - UNMAINTAINED - No Maintenance Intended
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@example.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.
>>> import ipgetter >>> myip = ipgetter.myip() >>> myip '18.104.22.168'
$ python -m ipgetter '22.214.171.124'
# pip install ipgetter
Or download the tarball or git clone the repository and then:
# python setup.py install
- 40 servers
- SSL + cookie support
- bug fixes
- 45 servers
- Simpler is better
- Fix servers (current 42 servers)
- Serverlist = 44 servers
- Added timeout for getting the IP
- Fix distutils issues
- Fix python 2 backwards compatibility
- You can retrieve your IP.
- Serverlist = 16 servers