whatismyip
This ia a web server that can show your real public IP address.
Features
- Show your real public IP address.
- Show HTTP headers of your request.
Demo
Screenshots
Principles
Get first value of HTTP header X-Forwarded-For
(XFF).
HTTP request (Example):
X-Forwarded-For:
client
, proxy1, proxy2
note:
HTTP header is modifiable
.
Prerequisites
-
Proxy Server
According to Principles,
whatismyip
need the proxy server. (See proxy server config example.)
Build
git clone https://github.com/beckxie/whatismyip.git
make all
Deployment
Usage
-p int
http server port (default 9999)
-tmpl string
tmpl file (default "../web/template/whatismyip.tmpl")
-v version
References
License
This project is licensed under the MIT License - see the LICENSE file for details