This website will tell you your IPv4 and IPv6 addresses, as well as PTR if it exists.
This website is usable in shell scripts too.

A Funny Bird

Your IPv6 address is:

None

Your IPv4 address is:

None


Your IPv6 PTR is:

None

Your IPv4 PTR is:

None



Scripting Usage

This website can also be shell scripted using curl and httpie

Get IPv4 Address in Bash

IP4=`curl -s 4.ipaddr.ca/ip`

Get IPv6 Address in Bash

IP6=`curl -s 6.ipaddr.ca/ip`

Get IPv4 PTR Address in Bash

PTR4=`curl -s 4.ipaddr.ca/ptr`

Get IPv6 PTR Address in Bash

PTR6=`curl -s 6.ipaddr.ca/ptr`

Single Stacked Hosts

Single stacked hosts which don't have IPv6 access can simply request the following:

IP=`curl -s ipaddr.ca/ip` or
PTR=`curl -s ipaddr.ca/ptr`


Advanced Scripting Usage

This website can also be shell scripted using curl:
IP6=`curl -s 6.ipaddr.ca/ip` or
IP4=`curl -s 4.ipaddr.ca/ip` or
PTR6=`curl -s 6.ipaddr.ca/ptr` or
PTR4=`curl -s 4.ipaddr.ca/ptr`

Phasellus vitae suscipit justo. Mauris pharetra feugiat ante id lacinia. Etiam faucibus mauris id tempor egestas. Duis luctus turpis at accumsan tincidunt. Phasellus risus risus, volutpat vel tellus ac, tincidunt fringilla massa. Etiam hendrerit dolor eget ante rutrum adipiscing. Cras interdum ipsum mattis, tempus mauris vel, semper ipsum. Duis sed dolor ut enim lobortis pellentesque ultricies ac ligula. Pellentesque convallis elit nisi, id vulputate ipsum ullamcorper ut. Cras ac pulvinar purus, ac viverra est. Suspendisse potenti. Integer pellentesque neque et elementum tempus. Curabitur bibendum in ligula ut rhoncus.

Disque pharetra velit id velit iaculis pretium. Nullam a justo sed ligula porta semper eu quis enim. Pellentesque pellentesque, metus at facilisis hendrerit, lectus velit facilisis leo, quis volutpat turpis arcu quis enim. Nulla viverra lorem elementum interdum ultricies. Suspendisse accumsan quam nec ante mollis tempus. Morbi vel accumsan diam, eget convallis tellus. Suspendisse potenti.