An open API service indexing awesome lists of open source software.

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.

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
.