This is a simple python module for fetching the users IP address.
To install, you need pip
. If you do not have it already, install it on apt-get systems by typing: sudo apt-get install python-pip
Then run:
sudo pip install iplibrary
Example:
from iplibrary.ip import *
print(getIP_all())
Works with python 2.7 aswell as python 3.
This library was revamped at 31/3-17, redoing most of the code.