system:what_is_my_ip_address
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| system:what_is_my_ip_address [2022-06-07T03:25:38+0000] – created michael_paoli | system:what_is_my_ip_address [2025-08-14T05:19:21+0000] (current) – +api6{,4}.ipify.org michael_paoli | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== What's my source IP as seen from The Internet? ====== | ====== What's my source IP as seen from The Internet? ====== | ||
| + | |||
| + | Similar listings, etc. found on The Internet:\\ | ||
| + | [[https:// | ||
| + | [[https:// | ||
| + | [[https:// | ||
| Publicly available resources to check:\\ | Publicly available resources to check:\\ | ||
| - | ^ http | + | ^http 80 ^https 443 ^ IPv ^^ DNS \\ 53 |
| - | ^ ::: | + | ^ ::: ^ ::: ^ 4 ^ 6 ^ ::: |
| - | | [[http://ifconfig.co|y]] | [[https:// | + | |[[http:// |
| - | | [[http://icanhazip.com/|y]] | + | |[[http://yourip.app/ |
| - | | [[http:// | + | |[[http:// |
| - | | [[http://ifconfig.me/|y]] | + | |- |- | 4 | - | U |
| - | | [[http:// | + | |- |- | 4 | 6 | y |
| - | | [[http://echoip.xyz/|*]] | [[https://echoip.xyz/|y]] | 4 | - | - |echoip.xyz/ # * http redirects to https | + | |[[http:// |
| - | | [[http:// | + | |[[http:// |
| - | | [[http:// | + | |[[http://whatismyip.akamai.com/]] |
| - | | [[http:// | + | |[[http:// |
| - | | [[http://whatismyip.akamai.com/|y]] | + | |[[http:// |
| - | | [[http://en.wikipedia.org/wiki/Wikipedia:Get_my_IP_address|*]] | [[https://en.wikipedia.org/wiki/Wikipedia:Get_my_IP_address|y]] | 4 | | + | |[[http:// |
| - | | - | + | |- |- | 4 | 6 | y |
| - | | - | + | |[[http://icanhazip.com/ |
| - | | - | + | |[[http:// |
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |- |- | 4 | 6 | y | ||
| + | |[[http:// | ||
| + | |- |- | 4 | 6 | - | ||
| + | |[[http:// | ||
| + | |- |- | 4 | 6 | - | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |- |- | 4 | 6 | y | ||
| + | |[[http://myip.is/ | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http://ifconfig.me/ | ||
| + | |[[http:// | ||
| + | |[[http://ip4.me/api/]] | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |- |- | 4 | - | U | ||
| + | |- |- | 4 | 6 | | ||
| + | |- |- | ||
| + | |- |- | - | 6 | y | | ||
| + | |- |- | ||
| + | |[[https:// | ||
| + | |[[https://ipcow.net/]]* | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |- |[[https:// | ||
| + | |- |[[https:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |- |- | 4 | 6 | y | ||
| + | |[[http:// | ||
| + | | | ||
| + | |[[http:// | ||
| + | | | ||
| + | |[[http:// | ||
| + | | | ||
| + | |[[http:// | ||
| + | |[[http://httpbin.dmuth.org/ip]]* |[[https:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http://api64.ipify.org/]] |[[https:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[https:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http://en.wikipedia.org/ | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |- |- | 4 | 6 | U | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |[[http:// | ||
| + | |||
| + | ===== Notes: ===== | ||
| + | |||
| + | DNS column: U or T indicates respectively UDP or TCP only | ||
| + | |||
| + | May/ | ||
| + | ip4.me, ip4only.me \\ | ||
| + | ip6addr.com, | ||
| + | ip6.me, ip6only.me \\ | ||
| + | ipv6addr.com, | ||
| + | onlyip4.me, onlyip6.me \\ | ||
| + | whatismyipv6address.com, | ||
| + | whatismyv6.com, | ||
| + | per\\ | ||
| + | https:// | ||
| + | https:// | ||
| + | etc. | ||
| + | |||
| + | I'm hoping/ | ||
| + | and also includes ability to programmatically accept submissions/ | ||
| + | Thus far it's still a work-in-progress. | ||
| + | |||
| + | ===== Example Usage: ===== | ||
| + | |||
| + | ==== http/https ==== | ||
| + | |||
| + | < | ||
| + | myv4=" | ||
| + | myv6=" | ||
| + | control_M=" | ||
| + | for path in \ | ||
| + | 1.1.1.1/ | ||
| + | ifconfig.co/ | ||
| + | whatismyip.akamai.com/ | ||
| + | dafuqismyip.com/ | ||
| + | {, | ||
| + | ipchicken.com/ | ||
| + | www.moanmyip.com/ | ||
| + | myexternalip.com/ | ||
| + | simplesniff.com/ | ||
| + | wgetip.com/ \ | ||
| + | whatsmyfuckingip.com/ | ||
| + | wtfismyip.com/ | ||
| + | ifconfig.io/ | ||
| + | ipinfo.io/ | ||
| + | ident.me \ | ||
| + | ifconfig.me/ | ||
| + | ip.me/ \ | ||
| + | ip{4, | ||
| + | ipecho.net/ | ||
| + | tnx.nl/ip \ | ||
| + | ip.tyk.nu/ \ | ||
| + | corz.org/ip \ | ||
| + | {, | ||
| + | api.ipify.org/ | ||
| + | ip.42.pl/ | ||
| + | {, | ||
| + | {self{, | ||
| + | myip.wtf/ | ||
| + | do | ||
| + | for scheme in http https | ||
| + | do | ||
| + | for v in 4 6 | ||
| + | do | ||
| + | case " | ||
| + | 4) | ||
| + | myip=" | ||
| + | ;; | ||
| + | 6) | ||
| + | myip=" | ||
| + | ;; | ||
| + | esac | ||
| + | curlopts=" | ||
| + | r=$(curl $curlopts " | ||
| + | case " | ||
| + | " | ||
| + | echo "\$ curl $curlopts $scheme:// | ||
| + | echo $r | ||
| + | ;; | ||
| + | " | ||
| + | echo "\$ curl $curlopts $scheme:// | ||
| + | echo $myip' | ||
| + | ;; | ||
| + | *" | ||
| + | echo "\$ curl $curlopts $scheme:// | ||
| + | echo $myip found in text | ||
| + | ;; | ||
| + | *) | ||
| + | myRE=$( | ||
| + | echo " | ||
| + | sed -e ' | ||
| + | ) | ||
| + | printf ' | ||
| + | if grep " | ||
| + | echo "\$ curl $curlopts $scheme:// | ||
| + | echo $myip found in text in alternative format | ||
| + | elif [ " | ||
| + | curlopts=" | ||
| + | r=$(curl $curlopts " | ||
| + | case " | ||
| + | " | ||
| + | echo "\$ curl $curlopts $scheme:// | ||
| + | echo $r | ||
| + | ;; | ||
| + | " | ||
| + | echo "\$ curl $curlopts $scheme:// | ||
| + | echo $myip' | ||
| + | ;; | ||
| + | *" | ||
| + | echo "\$ curl $curlopts $scheme:// | ||
| + | echo $myip found in text | ||
| + | ;; | ||
| + | *) | ||
| + | myRE=$( | ||
| + | echo " | ||
| + | sed -e ' | ||
| + | ) | ||
| + | printf ' | ||
| + | grep " | ||
| + | echo "\$ curl $curlopts $scheme:// | ||
| + | echo $myip found in text in alternative format | ||
| + | } | ||
| + | ;; | ||
| + | esac | ||
| + | fi | ||
| + | ;; | ||
| + | esac | ||
| + | done | ||
| + | done | ||
| + | done; echo '$ ' | ||
| + | |||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -k -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226^M | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -k -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 found in text in alternative format | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 found in text in alternative format | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s http:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s http:// | ||
| + | 2001: | ||
| + | $ curl -4 -m 15 -s https:// | ||
| + | 96.86.170.226 | ||
| + | $ curl -6 -m 15 -s https:// | ||
| + | 2001: | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | ==== DNS ==== | ||
| + | |||
| + | < | ||
| + | myv4=" | ||
| + | myv6=" | ||
| + | control_M=" | ||
| + | # | ||
| + | digopts=' | ||
| + | for ns_rr_class_types in \ | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | ' | ||
| + | 'dns.toys | ||
| + | do | ||
| + | set -- $ns_rr_class_types | ||
| + | NS=" | ||
| + | for TYPE in $TYPES | ||
| + | do | ||
| + | query=" | ||
| + | for v in 4 6 | ||
| + | do | ||
| + | case " | ||
| + | 4) | ||
| + | myip=" | ||
| + | ;; | ||
| + | 6) | ||
| + | myip=" | ||
| + | ;; | ||
| + | esac | ||
| + | r=$(dig @" | ||
| + | case " | ||
| + | \"" | ||
| + | echo "\$ dig @" | ||
| + | echo $r | ||
| + | ;; | ||
| + | *" | ||
| + | echo "\$ dig @" | ||
| + | printf 'found in text: | ||
| + | ;; | ||
| + | *) | ||
| + | myRE=$( | ||
| + | echo " | ||
| + | sed -e ' | ||
| + | ) | ||
| + | printf ' | ||
| + | if grep " | ||
| + | echo "\$ dig @" | ||
| + | echo $myip found in text in alternative format | ||
| + | fi | ||
| + | ;; | ||
| + | esac | ||
| + | r=$(dig @" | ||
| + | case " | ||
| + | \"" | ||
| + | echo "\$ dig @" | ||
| + | echo $r | ||
| + | ;; | ||
| + | *" | ||
| + | echo "\$ dig @" | ||
| + | printf 'found in text: | ||
| + | ;; | ||
| + | *) | ||
| + | myRE=$( | ||
| + | echo " | ||
| + | sed -e ' | ||
| + | ) | ||
| + | printf ' | ||
| + | if grep " | ||
| + | echo "\$ dig @" | ||
| + | echo $myip found in text in alternative format | ||
| + | fi | ||
| + | ;; | ||
| + | esac | ||
| + | done | ||
| + | done | ||
| + | done; echo '$ ' | ||
| + | $ dig @1.1.1.1 +short +norecurse -4 whoami.cloudflare TXT CH | ||
| + | " | ||
| + | $ dig @1.1.1.1 +tcp +short +norecurse -4 whoami.cloudflare TXT CH | ||
| + | " | ||
| + | $ dig @ns1.google.com. +short +norecurse -4 o-o.myaddr.l.google.com. TXT IN | ||
| + | " | ||
| + | $ dig @ns1.google.com. +tcp +short +norecurse -4 o-o.myaddr.l.google.com. TXT IN | ||
| + | " | ||
| + | $ dig @ns1.google.com. +short +norecurse -6 o-o.myaddr.l.google.com. TXT IN | ||
| + | " | ||
| + | $ dig @ns1.google.com. +tcp +short +norecurse -6 o-o.myaddr.l.google.com. TXT IN | ||
| + | " | ||
| + | $ dig @resolver1.opendns.com. +short +norecurse -4 myip.opendns.com. A IN | ||
| + | 96.86.170.226 | ||
| + | $ dig @resolver1.opendns.com. +tcp +short +norecurse -4 myip.opendns.com. A IN | ||
| + | 96.86.170.226 | ||
| + | $ dig @resolver1.opendns.com. +short +norecurse -6 myip.opendns.com. AAAA IN | ||
| + | 2001: | ||
| + | $ dig @resolver1.opendns.com. +tcp +short +norecurse -6 myip.opendns.com. AAAA IN | ||
| + | 2001: | ||
| + | $ dig @ns.sslip.io. +short +norecurse -4 ip.sslip.io. TXT IN | ||
| + | " | ||
| + | $ dig @ns.sslip.io. +tcp +short +norecurse -4 ip.sslip.io. TXT IN | ||
| + | " | ||
| + | $ dig @ns.sslip.io. +short +norecurse -6 ip.sslip.io. TXT IN | ||
| + | " | ||
| + | $ dig @ns.sslip.io. +tcp +short +norecurse -6 ip.sslip.io. TXT IN | ||
| + | " | ||
| + | $ dig @update.dynamic.name. +short +norecurse -4 my.dynamic.name. A IN | ||
| + | 96.86.170.226 | ||
| + | $ dig @ns1-1.akamaitech.net. +short +norecurse -4 whoami.akamai.net. A IN | ||
| + | 96.86.170.226 | ||
| + | $ dig @ns1-1.akamaitech.net. +tcp +short +norecurse -4 whoami.akamai.net. A IN | ||
| + | 96.86.170.226 | ||
| + | $ dig @one.one.one.one. +short +norecurse -4 whoami.cloudflare. TXT CH | ||
| + | " | ||
| + | $ dig @one.one.one.one. +tcp +short +norecurse -4 whoami.cloudflare. TXT CH | ||
| + | " | ||
| + | $ dig @one.one.one.one. +short +norecurse -6 whoami.cloudflare. TXT CH | ||
| + | " | ||
| + | $ dig @one.one.one.one. +tcp +short +norecurse -6 whoami.cloudflare. TXT CH | ||
| + | " | ||
| + | $ dig @dns.toys +short +norecurse -4 ip. TXT IN | ||
| + | " | ||
| + | $ dig @dns.toys +short +norecurse -6 ip. TXT IN | ||
| + | " | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | ==== ssh ==== | ||
| + | |||
| + | < | ||
| + | myv4=" | ||
| + | myv6=" | ||
| + | control_M=" | ||
| + | for userathost in \ | ||
| + | sshmyip.com myip@{, | ||
| + | do | ||
| + | for v in 4 6 | ||
| + | do | ||
| + | case " | ||
| + | 4) | ||
| + | myip=" | ||
| + | ;; | ||
| + | 6) | ||
| + | myip=" | ||
| + | ;; | ||
| + | esac | ||
| + | sshopts=" | ||
| + | r=$(ssh $sshopts $userathost 2>>/ | ||
| + | case " | ||
| + | " | ||
| + | echo "\$ ssh -$v $userathost" | ||
| + | echo $r | ||
| + | ;; | ||
| + | " | ||
| + | echo "\$ ssh -$v $userathost" | ||
| + | echo $myip' | ||
| + | ;; | ||
| + | *" | ||
| + | echo "\$ ssh -$v $userathost" | ||
| + | echo $myip found in text | ||
| + | ;; | ||
| + | *) | ||
| + | myRE=$( | ||
| + | echo " | ||
| + | sed -e ' | ||
| + | ) | ||
| + | printf ' | ||
| + | if grep " | ||
| + | echo "\$ ssh -$v $userathost" | ||
| + | echo $myip found in text in alternative format | ||
| + | fi | ||
| + | ;; | ||
| + | esac | ||
| + | done | ||
| + | done; echo '$ ' | ||
| + | $ ssh -4 sshmyip.com | ||
| + | 96.86.170.226 found in text | ||
| + | $ ssh -6 sshmyip.com | ||
| + | 2001: | ||
| + | $ ssh -4 myip@balug.org | ||
| + | 96.86.170.226 | ||
| + | $ ssh -6 myip@balug.org | ||
| + | 2001: | ||
| + | $ ssh -4 myip@ipv4.balug.org | ||
| + | 96.86.170.226 | ||
| + | $ ssh -6 myip@ipv6.balug.org | ||
| + | 2001: | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | ==== telnet ==== | ||
| + | |||
| + | < | ||
| + | myv4=" | ||
| + | myv6=" | ||
| + | control_M=" | ||
| + | for domain in \ | ||
| + | telnetmyip.com | ||
| + | do | ||
| + | for v in 4 6 | ||
| + | do | ||
| + | case " | ||
| + | 4) | ||
| + | myip=" | ||
| + | ;; | ||
| + | 6) | ||
| + | myip=" | ||
| + | ;; | ||
| + | esac | ||
| + | telnetopts=" | ||
| + | r=$(sleep 2 | telnet $telnetopts $domain 2>>/ | ||
| + | case " | ||
| + | " | ||
| + | echo "\$ telnet -$v $domain" | ||
| + | echo $r | ||
| + | ;; | ||
| + | " | ||
| + | echo "\$ telnet -$v domain" | ||
| + | echo $myip' | ||
| + | ;; | ||
| + | *" | ||
| + | echo "\$ telnet -$v $domain" | ||
| + | echo $myip found in text | ||
| + | ;; | ||
| + | *) | ||
| + | myRE=$( | ||
| + | echo " | ||
| + | sed -e ' | ||
| + | ) | ||
| + | printf ' | ||
| + | if grep " | ||
| + | echo "\$ telnet -$v $domain" | ||
| + | echo $myip found in text in alternative format | ||
| + | fi | ||
| + | ;; | ||
| + | esac | ||
| + | done | ||
| + | done; echo '$ ' | ||
| + | $ telnet -4 telnetmyip.com | ||
| + | 96.86.170.226 found in text | ||
| + | $ telnet -6 telnetmyip.com | ||
| + | 2001: | ||
| + | $ | ||
| + | </ | ||
system/what_is_my_ip_address.1654572338.txt.bz2 · Last modified: 2022-06-07T03:25:38+0000 by michael_paoli