Skip to content

A simple way to get your public IP address and other connection related information from any device

License

Notifications You must be signed in to change notification settings

StackFocus/SwagIP

Repository files navigation

SwagIP Build Status Python Flask

A simple way to get your public IP address and other connection related information

Examples of retrieving your public IP address from Linux/Unix CLI:

wget -qO - ip.swagger.pro
curl ip.swagger.pro
fetch -qo - ip.swagger.pro

Example of retrieving your public IP address from PowerShell 3+:

Invoke-RestMethod http://ip.swagger.pro

Authors

Installation

$ pip install -r requirements.txt
$ python app.py

Testing

$ py.test tests/

Docker

Docker is used to scale the application

$ docker build -t swagip .
$ docker run -p 0.0.0.0:80:8080 swagip

Screenshots

Browser Information:

Browser Information

Wget Commands:

Wget Commands

Curl Commands:

Curl Commands

Fetch Commands:

Fetch Commands

PowerShell Commands:

PowerShell Commands