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
system:what_is_my_ip_address [2022-06-07T03:25:38+0000]
michael_paoli created
system:what_is_my_ip_address [2023-09-05T20:26:21+0000] (current)
michael_paoli +ipchicken.com
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  |  ​ ​| ​ -             |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  |  ​ ​| ​ -             |ifconfig.me/ ​                                                                                       ​+|[[http://icanhazip.com/]]                                                                  |[[https://icanhazip.com/]]                                                                 ​|  4  |  ​ ​| ​ -             |https://​major.io/icanhazip-com-faq/ ​                                            
-|  [[http://api.ipify.org/|y]]                                     ​ [[https://api.ipify.org/|y]]                                     ​|  4  |  -  |  -             |api.ipify.org/ ​                                                                                     ​+|[[http://ipchicken.com/]]*                                                                 |[[https://ichicken.com/]]                                                                  |  4  |  ​ ​| ​ -             |* http redirects to https, JavaScript required ​                                 ​
- [[http://echoip.xyz/|*]]                                         [[https://echoip.xyz/|y]]                                        |  4  |  -  |  -             |echoip.xyz/ # * http redirects to https                                                             +|-                                                                                          |-                                                                                          ​|  ​4  |  6  |  y             ​|@resolver1.opendns.com. myip.opendns.com. A myip.opendns.com. AAAA              | 
- [[http://​www.balug.org/​myip|y]]                                 ​ [[https://​www.balug.org/​myip|y]]                                 ​|  4  |  ​ ​| ​ -             |www.balug.org/​myip ​                                                                                 ​+|[[http://ipinfo.io/ip]]                                                                    |[[https://ipinfo.io/ip]]                                                                   ​|  4  |  -  |  -             ​| ​                                                                               
- [[http://​www.ipv4.balug.org/​myip|y]]                             [[https://​www.ipv4.balug.org/​myip|y]]                            |  ​ ​|  ​ ​| ​ -             |www.ipv4.balug.org/​myip ​                                                                            +|[[http://ifconfig.me/]]                                                                    |[[https://ifconfig.me/]]                                                                   ​|  4  |  -  |  -             ​| ​                                                                               
- [[http://​www.ipv6.balug.org/​myip|y]]                             [[https://​www.ipv6.balug.org/​myip|y]]                            |  ​ ​| ​ 6  |  -             |www.ipv6.balug.org/​myip ​                                                                            +|[[http://​www.ipv4.balug.org/​myip]] ​                                                        ​|[[https://​www.ipv4.balug.org/​myip]] ​                                                       |  4  |  ​ ​| ​ -             ​| ​                                                                               
- [[http://whatismyip.akamai.com/|y]]                             ​ [[https://whatismyip.akamai.com/|*]]                             ​|  4  |  -  |  -             |whatismyip.akamai.com/​ # * cert may not match                                                       +|[[http://​www.ipv6.balug.org/​myip]] ​                                                        ​|[[https://​www.ipv6.balug.org/​myip]] ​                                                       |  ​ ​|  ​ ​| ​ -             ​| ​                                                                               
- [[http://​en.wikipedia.org/​wiki/​Wikipedia:​Get_my_IP_address|*]]   [[https://​en.wikipedia.org/​wiki/​Wikipedia:​Get_my_IP_address|y]]  |  4  |  6  |  -             |en.wikipedia.org/​wiki/​Wikipedia:​Get_my_IP_address # long text description,​ * http redirects to https| +|[[http://​www.balug.org/​myip]] ​                                                             |[[https://​www.balug.org/​myip]] ​                                                            ​|  ​ ​| ​ 6  |  -             ​| ​                                                                               
-|  -                                                               ​|  -                                                                |  ​ ​| ​ 6  |  y             ​|@ns1.google.com. o-o.myaddr.l.google.com. TXT                                                       | +|[[http://api.ipify.org/]]                                                                  |[[https://api.ipify.org/]]                                                                 ​|  4  |  -  |  -             ​| ​                                                                               
- -                                                               ​| ​ -                                                                |  ​4  ​ ​6  ​ y             |@resolver1.opendns.com. myip.opendns.com. A myip.opendns.com. AAAA                                  | +|[[http://​en.wikipedia.org/​wiki/​Wikipedia:​Get_my_IP_address?​withJS=MediaWiki:​Get-my-ip.js]]*|[[https://​en.wikipedia.org/​wiki/​Wikipedia:​Get_my_IP_address?​withJS=MediaWiki:​Get-my-ip.js]]|  4  |  6  |  -             |long text description, JavaScript/​ECMAScript required, * http redirects to https| 
-|  ​                                                              |  -                                                                |  4  |  -  |  y             |@dns.toys ip. TXT @dns.toys ​help. TXT # https://​www.dns.toys/ ​                                    |+|[[http://​self.ip.addr.tools/​]] ​                                                            ​|[[https://​self.ip.addr.tools/​]] ​                                                           |  4  ​|  -  |  -             |https://​ip.addr.tools/ ​                                                         | 
 +|[[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/​ \ 
 +  whatismyip.akamai.com/​ \ 
 +  icanhazip.com/​ \ 
 +  ipinfo.io/​ip \ 
 +  ifconfig.me/​ \ 
 +  www.{ipv{4,​6}.,​}balug.org/​myip \ 
 +  api.ipify.org/​ \ 
 +  self.ip.addr.tools/​ \ 
 +  self6.ip.addr.tools/​ \ 
 +  echoip.xyz/​ 
 +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://​whatismyip.akamai.com/​ 
 +96.86.170.226 
 +$ curl -k -s -4 https://​whatismyip.akamai.com/​ 
 +96.86.170.226 
 +$ 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://​www.ipv4.balug.org/​myip 
 +96.86.170.226 
 +$ curl -s -4 https://​www.ipv4.balug.org/​myip 
 +96.86.170.226 
 +$ curl -s -6 http://​www.ipv6.balug.org/​myip 
 +2001:​470:​67:​76f::​2 
 +$ curl -s -6 https://​www.ipv6.balug.org/​myip 
 +2001:​470:​67:​76f::​2 
 +$ curl -s -4 http://​www.balug.org/​myip 
 +96.86.170.226 
 +$ curl -s -6 http://​www.balug.org/​myip 
 +2001:​470:​67:​76f::​2 
 +$ curl -s -4 https://​www.balug.org/​myip 
 +96.86.170.226 
 +$ curl -s -6 https://​www.balug.org/​myip 
 +2001:​470:​67:​76f::​2 
 +$ 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 http://​echoip.xyz/​ 
 +96.86.170.226 
 +$ curl -s -6 http://​echoip.xyz/​ 
 +2001:​470:​67:​76f::​2 
 +$ curl -s -4 https://​echoip.xyz/​ 
 +96.86.170.226 
 +$ curl -s -6 https://​echoip.xyz/​ 
 +2001:​470:​67:​76f::​2 
 +$  
 + 
 +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"​ 
 +$ dig @dns.toys ​+short +norecurse -6 ip. TXT 
 +"2001:470:​67:​76f::​2"​ 
 +$  
 +</file>
system/what_is_my_ip_address.1654572338.txt.bz2 · Last modified: 2022-06-07T03:25:38+0000 by michael_paoli