https://github.com/pklaus/whatsmyip
This is an HTTP Server that simply returns the Remote Address, your IP. In other words, it's a simple text-only "What's My IP" service implemented in a few lines of Python. Works for IPv4 and IPv6.
https://github.com/pklaus/whatsmyip
Last synced: about 1 month ago
JSON representation
This is an HTTP Server that simply returns the Remote Address, your IP. In other words, it's a simple text-only "What's My IP" service implemented in a few lines of Python. Works for IPv4 and IPv6.
- Host: GitHub
- URL: https://github.com/pklaus/whatsmyip
- Owner: pklaus
- Created: 2013-06-11T11:47:03.000Z (almost 12 years ago)
- Default Branch: python3.3
- Last Pushed: 2014-10-29T10:56:47.000Z (over 10 years ago)
- Last Synced: 2025-03-26T13:03:45.475Z (about 2 months ago)
- Language: Python
- Homepage:
- Size: 273 KB
- Stars: 18
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### WhatsMyIP
This tool is a very simple HTTP Server:
It returns the `REMOTE_ADDR` to connecting HTTP clients.
In other words: *It tells you what your current IP is*.#### Installation
All this server needs is Python 3.3+ (there's a branch with support for Python 2.7+ too).
So, get Python first, then download the project from
or clone the repository.#### Usage
Start the tool like this:
./whatsmyip.py --host :: --port 8080
It should be run a a computer or server that's reachable over the Internet.
Then any client requesting http://serveraddress:8080/ will receive its
IP address (IPv4 or IPv6) back from the server.#### Inspired by
*
* and#### Author
* Philipp Klaus
.