User Tools

Site Tools


system:what_is_my_ip_address

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
system:what_is_my_ip_address [2022-06-07T03:25:38+0000]
michael_paoli created
system:what_is_my_ip_address [2023-03-30T07:39:01+0000]
michael_paoli +self.ip.addr.tools & self6.ip.addr.tools, reordered list (by domains), various reformatting
Line 3: Line 3:
 Publicly available resources to check:\\ Publicly available resources to check:\\
  
- http  ​\\  ​80                                                     https  ​\\  ​443                                                   ​^  IPv      ^^  DNS  \\  53  ^notes ​                                                                                              ​+^http 80                                                      ^https 443                                                    ^  IPv      ^^  DNS  \\  53  ^notes ​                                                            ​
-^  :::                                                             ​^  :::                                                              ^  4  ^  6  ^  :::           ​^ ​ :::                                                                                               ​+^  :::                                                        ^  :::                                                        ^  4  ^  6  ^  :::           ​^ ​ :::                                                             ​
- [[http://​ifconfig.co|y]]                                         [[https://​ifconfig.co|y]]                                        |  4  |  6  |  -             |ifconfig.co                                                                                       +|[[http://​ifconfig.co/]]                                      |[[https://​ifconfig.co/]]                                     ​|  4  |  6  |  -             ​| ​                                                                 | 
-|  [[http://​icanhazip.com/​|y]]                                     ​ [[https://​icanhazip.com/​|y]]                                     ​|  4  |  6  |  -             |icanhazip.com/​ # https://​major.io/​icanhazip-com-faq/ ​                                               +|[[http://​whatismyip.akamai.com/]]                            |[[https://​whatismyip.akamai.com/​]]* ​                         |  4  |  -  |  -             |* cert may not match                                              ​
-|  [[http://​ipinfo.io/​ip|y]]                                       ​ [[https://​ipinfo.io/​ip|y]]                                       ​|  4  |  -  |  -             |ipinfo.io/​ip ​                                                                                       ​+|-                                                            |-                                                            ​|  ​4  |  6  |  y             ​|@ns1.google.com. o-o.myaddr.l.google.com. TXT                     | 
- [[http://​ifconfig.me/​|y]]                                       ​ [[https://​ifconfig.me/​|y]]                                       ​|  4  |  6  |  -             |ifconfig.me/ ​                                                                                       ​+|[[http://​icanhazip.com/​]] ​                                   |[[https://​icanhazip.com/​]] ​                                  ​|  4  |  6  |  -             ​|https://​major.io/​icanhazip-com-faq/ ​                              ​
- [[http://api.ipify.org/|y]]                                     ​ [[https://api.ipify.org/|y]]                                     ​|  4  |  -  |  -             |api.ipify.org/ ​                                                                                     ​+|-                                                            |-                                                            ​|  ​4  |  6  |  y             ​|@resolver1.opendns.com. myip.opendns.com. A myip.opendns.com. AAAA| 
- [[http://echoip.xyz/|*]]                                         [[https://echoip.xyz/|y]]                                        |  ​ ​|  ​ ​| ​ -             |echoip.xyz/ # * http redirects to https                                                             +|[[http://​ipinfo.io/​ip]] ​                                     |[[https://​ipinfo.io/​ip]] ​                                    ​|  4  |  -  |  -             ​| ​                                                                 
- [[http://​www.balug.org/​myip|y]]                                 ​ [[https://​www.balug.org/​myip|y]]                                 ​|  4  |  6  |  -             |www.balug.org/​myip ​                                                                                 ​+|[[http://​ifconfig.me/​]] ​                                     |[[https://​ifconfig.me/​]] ​                                    ​|  4  |  6  |  -             ​| ​                                                                 
- [[http://www.ipv4.balug.org/myip|y]]                             [[https://www.ipv4.balug.org/myip|y]]                            |  4  |  -  |  -             |www.ipv4.balug.org/​myip ​                                                                            +|[[http://www.ipv4.balug.org/myip]]                           ​|[[https://www.ipv4.balug.org/myip]]                          |  4  |  -  |  -             ​| ​                                                                 
- [[http://www.ipv6.balug.org/myip|y]]                             [[https://www.ipv6.balug.org/myip|y]]                            |  ​ ​| ​ 6  |  -             |www.ipv6.balug.org/​myip ​                                                                            +|[[http://www.ipv6.balug.org/myip]]                           ​|[[https://www.ipv6.balug.org/myip]]                          |  ​ ​|  ​ ​| ​ -             ​| ​                                                                 
- [[http://whatismyip.akamai.com/|y]]                             ​ [[https://whatismyip.akamai.com/|*]]                             ​|  4  |  -  |  -             |whatismyip.akamai.com# * cert may not match                                                       +|[[http://​www.balug.org/​myip]] ​                               |[[https://​www.balug.org/​myip]] ​                              ​|  4  |  6  |  -             ​| ​                                                                 
- [[http://en.wikipedia.org/wiki/​Wikipedia:​Get_my_IP_address|*]]   [[https://en.wikipedia.org/wiki/​Wikipedia:​Get_my_IP_address|y]]  |  ​ ​| ​ 6  |  -             |en.wikipedia.org/wiki/​Wikipedia:​Get_my_IP_address # long text description,​ * http redirects to https+|[[http://api.ipify.org/​]] ​                                   |[[https://api.ipify.org/​]] ​                                  ​|  4  |  -  |  -             ​| ​                                                                 
-                                                               ​                                                                |  4  |  ​ ​| ​ y             ​|@ns1.google.com. o-o.myaddr.l.google.com. TXT                                                       | +|[[http://en.wikipedia.org/wiki/​Wikipedia:​Get_my_IP_address]]*|[[https://en.wikipedia.org/wiki/​Wikipedia:​Get_my_IP_address]]|  ​ ​| ​ 6  |  -             |long text description,​ * http redirects to https                  ​
- -                                                               ​| ​ -                                                                |  ​4  ​ ​6  ​ y             |@resolver1.opendns.com. myip.opendns.com. A myip.opendns.com. AAAA                                  | +|[[http://self.ip.addr.tools/]]                               ​|[[https://self.ip.addr.tools/]]                              |  4  |  -  |  -             |https://ip.addr.tools                                           
-|  -                                                               ​| ​ -                                                                |  4  |  -  |  y             |@dns.toys ipTXT # @dns.toys ​help. TXT # https://www.dns.toys                                    |+|[[http://self6.ip.addr.tools/]]                              |[[https://self6.ip.addr.tools/]]                             ​|  ​ ​| ​ 6  |  -             |https://ip.addr.tools                                           
 +|-                                                            |-                                                            |  4  |  ​ ​| ​ y             |https://​www.dns.toys/ ​@dns.toys ip. TXT help. TXT                 | 
 +|[[http://​echoip.xyz/​]]* ​                                     |[[https://​echoip.xyz/​]] ​                                     |  4  |  -  |  -             |* http redirects to https                                         | 
 + 
 +===== Example Usage: ===== 
 + 
 +<​file>​ 
 +for path in \ 
 +  ifconfig.co/​ \ 
 +  icanhazip.com/​ \ 
 +  ipinfo.io/​ip \ 
 +  ifconfig.me/​ \ 
 +  api.ipify.org/​ \ 
 +  echoip.xyz/ \ 
 +  www.{,​ipv{4,​6}.}balug.org/​myip \ 
 +  whatismyip.akamai.com/​ 
 +do 
 +  for scheme in http https 
 +  do 
 +    for v in 4 6 
 +    do 
 +      r=$(curl -s -"​$v"​ "​$scheme://​$path"​) 
 +      if expr x"​$r"​ : x'​[.0-9:​A-Za-z]\{1,​\}$'​ >>/​dev/​null;​ then 
 +        echo "\$ curl -s -$v $scheme://​$path"​ 
 +        echo $r 
 +      elif [ "​$scheme"​ = https ]; then 
 +        r=$(curl -k -s -"​$v"​ "​$scheme://​$path"​) 
 +      expr x"​$r"​ : x'​[.0-9:​A-Za-z]\{1,​\}$'​ >>/​dev/​null &&​ 
 +      { 
 +        echo "\$ curl -k -s -$v $scheme://​$path"​ 
 +        echo $r; 
 +      } 
 +      fi 
 +    done 
 +  done 
 +done; echo '$ ' 
 + 
 +$ curl -s -4 http://​ifconfig.co/​ 
 +96.86.170.226 
 +$ curl -s -6 http://​ifconfig.co/​ 
 +2001:​470:​67:​76f::​2 
 +$ curl -s -4 https://​ifconfig.co/​ 
 +96.86.170.226 
 +$ curl -s -6 https://​ifconfig.co/​ 
 +2001:​470:​67:​76f::​2 
 +$ curl -s -4 http://​icanhazip.com/​ 
 +96.86.170.226 
 +$ curl -s -6 http://​icanhazip.com/​ 
 +2001:​470:​67:​76f::​2 
 +$ curl -s -4 https://​icanhazip.com/​ 
 +96.86.170.226 
 +$ curl -s -6 https://​icanhazip.com/​ 
 +2001:​470:​67:​76f::​2 
 +$ curl -s -4 http://​ipinfo.io/​ip 
 +96.86.170.226 
 +$ curl -s -4 https://​ipinfo.io/​ip 
 +96.86.170.226 
 +$ curl -s -4 http://​ifconfig.me/​ 
 +96.86.170.226 
 +$ curl -s -4 https://​ifconfig.me/​ 
 +96.86.170.226 
 +$ curl -s -4 http://​api.ipify.org/​ 
 +96.86.170.226 
 +$ curl -s -4 https://​api.ipify.org/​ 
 +96.86.170.226 
 +$ curl -s -4 https://​echoip.xyz/​ 
 +96.86.170.226 
 +$ curl -s -4 http://​whatismyip.akamai.com/​ 
 +96.86.170.226 
 +$ curl -k -s -4 https://​whatismyip.akamai.com/​ 
 +96.86.170.226 
 +$  
 + 
 +for ns_rr_t_t2 in \ 
 +  'ns1.google.com. o-o.myaddr.l.google.com. TXT' \ 
 +  ​'​resolver1.opendns.com. myip.opendns.com. A AAAA' \ 
 +  '​dns.toys ip. TXT' 
 +do 
 +  set -- $ns_rr_t_t2;​ NS="​$1";​ RR="​$2";​ TYPE="​$3";​ TYPE2="​$4
 +  query="​$RR $TYPE${TYPE2:​+ $RR $TYPE2}"​ 
 +  for v in 4 6 
 +  do 
 +    r=$(dig @"​$NS"​ +short +norecurse -"​$v"​ $query 2>>/​dev/​null) &&​ 
 +    [ -n "​$r"​ ] && { 
 +      echo \$ dig @"​$NS"​ +short +norecurse -"​$v"​ $query 
 +      echo $r 
 +    } 
 +  done 
 +  : 
 +done; echo '$ ' 
 + 
 +$ dig @ns1.google.com. +short +norecurse -4 o-o.myaddr.l.google.com. TXT 
 +"​96.86.170.226"​ 
 +$ dig @ns1.google.com. +short +norecurse -6 o-o.myaddr.l.google.com. TXT 
 +"​2001:​470:​67:​76f::​2"​ 
 +$ dig @resolver1.opendns.com. ​+short +norecurse -4 myip.opendns.com. A myip.opendns.com. AAAA 
 +96.86.170.226 
 +$ dig @resolver1.opendns.com. +short +norecurse -6 myip.opendns.com. A myip.opendns.com. AAAA 
 +2001:​470:​67:​76f::​2 
 +$ dig @dns.toys ​+short +norecurse -4 ip. TXT 
 +"96.86.170.226"​ 
 +$  
 +</file>
system/what_is_my_ip_address.txt · Last modified: 2024-05-05T19:51:02+0000 by michael_paoli