- Go 77.4%
- Shell 15.7%
- Dockerfile 4.9%
- HTML 1.8%
- Python 0.2%
| alpine-redis | ||
| alpine-stun | ||
| alpine-unbound | ||
| certs | ||
| debian-bind | ||
| really-fucking-awful-failover-bash-scripts | ||
| redis | ||
| wtf | ||
| zones | ||
| .gitignore | ||
| CODE_OF_CONDUCT.md | ||
| docker-compose.yaml | ||
| LICENSE | ||
| README.md | ||
wtfismyip
- This is the fucking source code for https://wtfismyip.com. There isn't much to it.
- This is now a fucking community project. Send a pull request to make it better.
- Backend is also accessible on https://myip.wtf because typing sucks.
Main fucking endpoints
/headers
This one tells you what fucking data you're giving when connecting to a server.
/json
Gives you exactly what the main endpoint does except it gives it in raw fucking JSON.
/xml
Just like /json but fucking worse (read about it here).
/text
Gives you just your IP in plain fucking text.
/yaml
YAML, because why the fuck not?
/why
Tells you why the fuck we do what we do.
/automation
Tells you what you can and can not do with the hosted instance of the fucking service.
/privacy
Tells you exactly how much we respect your fucking privacy.
/donate
Makes our fucking services run.
/traffic
Shows you the traffic from fuckers around the world that came to fuck with us.
/clean
Use this at church, motherfucker.
Dual-stack hostname endpoints
wtfismyip.com is dual-stack. Operating system defaults and network connectivity will determine whether you get an IPv4 or IPv6 address. That can be really fucking annoying, so we also have IPv4/IPv6-only endpoints as documented below.
https://text.myip.wtfhttps://json.myip.wtfhttps://xml.myip.wtfhttps://text.wtfismyip.comhttps://json.wtfismyip.comhttps://xml.wtfismyip.comhttps://yaml.wtfismyip.com
IPv4 hostname endpoints
Useful for automation, curl, terminal usage
https://text.ipv4.myip.wtfhttps://ipv4.text.myip.wtfhttps://yaml.ipv4.myip.wtfhttps://ipv4.yaml.myip.wtfhttps://json.ipv4.myip.wtfhttps://ipv4.json.myip.wtfhttps://xml.ipv4.myip.wtfhttps://ipv4.xml.myip.wtfhttps://text.ipv4.wtfismyip.comhttps://ipv4.text.wtfismyip.comhttps://yaml.ipv4.wtfismyip.comhttps://ipv4.yaml.wtfismyip.comhttps://json.ipv4.wtfismyip.comhttps://ipv4.json.wtfismyip.comhttps://xml.ipv4.wtfismyip.comhttps://ipv4.xml.wtfismyip.com
Or if you're stuck in a browser
https://ipv4.wtfismyip.comhttps://ipv4.myip.wtf
IPv6 hostname endpoints
Useful for automation, curl, terminal usage
https://text.ipv6.myip.wtfhttps://ipv6.text.myip.wtfhttps://yaml.ipv6.myip.wtfhttps://ipv6.yaml.myip.wtfhttps://json.ipv6.myip.wtfhttps://ipv6.json.myip.wtfhttps://xml.ipv6.myip.wtfhttps://ipv6.xml.myip.wtfhttps://text.ipv6.wtfismyip.comhttps://ipv6.text.wtfismyip.comhttps://yaml.ipv6.wtfismyip.comhttps://ipv6.yaml.wtfismyip.comhttps://json.ipv6.wtfismyip.comhttps://ipv6.json.wtfismyip.comhttps://xml.ipv6.wtfismyip.comhttps://ipv6.xml.wtfismyip.com
Or if you're stuck in a browser
https://ipv6.wtfismyip.comhttps://ipv6.myip.wtf
Related services
- Mastodon: https://gnu.gl
- XMPP: xmpp://gnu.gl
- Public DNS over TLS: dot.wtfismyip.com
- Public STUN: wtfismyip.com
- PSTN Attestation: 1-507-I-ATTEST (1-507-428-8378)