Your IP address is 162.158.62.206

/v4

Returns your IPv4 address if available

Example
-> curl -s https://ip4.life/v6
<- 69.243.32.35

/v6

Returns your IPv6 address

Example
-> curl -s https://ip4.life/v4
<- 2601:14c:8300:6970:a001:cba9:b541:305

/auto

Returns your IPv4 address if available, otherwise returns your IPv6 address

Example
-> curl -s https://ip4.life/auto
<- 69.243.32.35
-> curl -s https://ip4.life/auto
<- 2601:14c:8300:6970:a001:cba9:b541:305

/json

Returns a JSON object containing your IPv4 address if available and your IPv6 address

Example
-> curl -s https://ip4.life/json
<- {
       "v4": "69.243.32.35",
       "v6": "::ffff:69.243.32.35"
   }

/xml

Returns an XML object containing your IPv4 address if available and your IPv6 address

Example
-> curl -s https://ip4.life/xml
<- <?xml version="1.0" encoding="UTF-8"?>
   <addresses>
       <v4>69.243.32.35</v4>
       <v6>::ffff:69.243.32.35</v6>
   </addresses>

Fun facts

  • There is no JavaScript in this page. The dropdown button is pure CSS
  • All pages and assets are served directly from RAM
  • This site follows your device's Dark Mode
  • Hosted on DigitalOcean
  • macOS is UNIX-compliant but most Linux distros are only UNIX-like