Source code for wtfismyip.com
  • Go 77.4%
  • Shell 15.7%
  • Dockerfile 4.9%
  • HTML 1.8%
  • Python 0.2%
Find a file
2026-05-06 23:41:55 +00:00
alpine-redis Fuck! I forgot to merge config/secrets.yml 2024-01-11 23:14:49 +00:00
alpine-stun Flatten docker images a bit 2024-02-28 18:18:21 +00:00
alpine-unbound Update fucking dependencies 2025-11-29 02:09:28 +00:00
certs Trololol! 2019-11-20 16:20:57 -06:00
debian-bind Update DNS, coturn images 2023-06-22 21:31:43 +00:00
really-fucking-awful-failover-bash-scripts Update failover scripts 2023-10-28 16:35:48 +02:00
redis Why the fuck not? 2024-02-15 15:59:28 +00:00
wtf Update fucking dependencies 2026-04-24 21:26:59 +00:00
zones Use some fucking CPU pinning, update fucking zone files 2025-12-05 01:08:42 +00:00
.gitignore Setup rndc-control 2022-11-24 20:09:05 +00:00
CODE_OF_CONDUCT.md Bugfixes and add code of conduct 2019-11-05 17:53:02 -06:00
docker-compose.yaml Bump version, update IPv6 addr 2026-05-06 23:41:55 +00:00
LICENSE LICENSE fix 2020-06-13 13:23:43 -05:00
README.md Consistent use of fucking trailing slashes 2023-06-02 20:56:25 +00:00

wtfismyip

  1. This is the fucking source code for https://wtfismyip.com. There isn't much to it.
  2. This is now a fucking community project. Send a pull request to make it better.
  3. 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.wtf
  • https://json.myip.wtf
  • https://xml.myip.wtf
  • https://text.wtfismyip.com
  • https://json.wtfismyip.com
  • https://xml.wtfismyip.com
  • https://yaml.wtfismyip.com

IPv4 hostname endpoints

Useful for automation, curl, terminal usage

  • https://text.ipv4.myip.wtf
  • https://ipv4.text.myip.wtf
  • https://yaml.ipv4.myip.wtf
  • https://ipv4.yaml.myip.wtf
  • https://json.ipv4.myip.wtf
  • https://ipv4.json.myip.wtf
  • https://xml.ipv4.myip.wtf
  • https://ipv4.xml.myip.wtf
  • https://text.ipv4.wtfismyip.com
  • https://ipv4.text.wtfismyip.com
  • https://yaml.ipv4.wtfismyip.com
  • https://ipv4.yaml.wtfismyip.com
  • https://json.ipv4.wtfismyip.com
  • https://ipv4.json.wtfismyip.com
  • https://xml.ipv4.wtfismyip.com
  • https://ipv4.xml.wtfismyip.com

Or if you're stuck in a browser

  • https://ipv4.wtfismyip.com
  • https://ipv4.myip.wtf

IPv6 hostname endpoints

Useful for automation, curl, terminal usage

  • https://text.ipv6.myip.wtf
  • https://ipv6.text.myip.wtf
  • https://yaml.ipv6.myip.wtf
  • https://ipv6.yaml.myip.wtf
  • https://json.ipv6.myip.wtf
  • https://ipv6.json.myip.wtf
  • https://xml.ipv6.myip.wtf
  • https://ipv6.xml.myip.wtf
  • https://text.ipv6.wtfismyip.com
  • https://ipv6.text.wtfismyip.com
  • https://yaml.ipv6.wtfismyip.com
  • https://ipv6.yaml.wtfismyip.com
  • https://json.ipv6.wtfismyip.com
  • https://ipv6.json.wtfismyip.com
  • https://xml.ipv6.wtfismyip.com
  • https://ipv6.xml.wtfismyip.com

Or if you're stuck in a browser

  • https://ipv6.wtfismyip.com
  • https://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)