https://github.com/ruanbekker/flask-remote-ip
Flask Web App To Return your Public IP
https://github.com/ruanbekker/flask-remote-ip
flask python request webapps
Last synced: 5 months ago
JSON representation
Flask Web App To Return your Public IP
- Host: GitHub
- URL: https://github.com/ruanbekker/flask-remote-ip
- Owner: ruanbekker
- Created: 2017-11-07T14:51:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T15:10:44.000Z (over 8 years ago)
- Last Synced: 2025-10-05T23:47:27.355Z (5 months ago)
- Topics: flask, python, request, webapps
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# flask-remote-ip
Flask Web App To Return your Public IP
## Setup
```
$ git clone https://github.com/ruanbekker/flask-remote-ip
$ cd flask-remote-ip
$ virtualenv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
```
## Run the Server:
```
$ python app.py
* Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
```
## Getting your Public IP from a Remote Client:
```
$ curl http://ip-flask-app:5000/
10.20.30.40
```