-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
El 2023-02-28 a las 20:29 +0100, Carlos E. R. escribió:
On 2023-02-28 20:13, Per Jessen wrote:
Carlos E. R. wrote:
On 2023-02-28 17:08, Per Jessen wrote:
Carlos E. R. wrote:
I use "checkip.dyndns.org" to obtain my router external IP in
scripts. I don't have yet IPv6, but my question is, can someone that
does have IPv6 test it and find out if it writes the IPv6 address?
'checkip.d.o' only has IPv4 addresses.
And if not, is there an alternative query site to find that one,
suitable for scripts?
You could try http://checkip.dns24.ch
I can't try because I don't have IPv6 yet ;-)
It has both ipv4 and ipv6.
Aha, ok, thanks.
I just did a little test (I was testing something else, so I took the
chance to try these sites).
I thethered my laptop to my phone (I had to insist to NM three times to do
it), which gets both IPv6 and IPv4 (a 10.*.*.*). ifconfig on the laptop
reports:
wlan1: flags=4163 mtu 1500
inet 192.168.194.251 netmask 255.255.255.0 broadcast 192.168.194.255
inet6 fe80::9841:x:y:z prefixlen 64 scopeid 0x20<link>
inet6 2a02:**:e1c4 prefixlen 64 scopeid 0x0<global>
inet6 2a02:**:93f5 prefixlen 64 scopeid 0x0<global>
Then I tried those IP reporting sites.
http://checkip.dyndns.org/
504 Gateway Time-out
http://checkip.dns24.ch/
2a02:9130:**:93f5
Interestingly, it seems the laptop doesn't get an external IPv4 address.
Yet I can ssh (on IPv4) to home, and I see an IPv4 address reported (that
was the test I was interested in).
Minutes later, dyndns reports a 176.*.*.* address, same one as sshd sees.
Ok, all good. But http://checkip.dns24.ch/ does not report both addresses.
- --
Cheers
Carlos E. R.
(from openSUSE 15.4 (Legolas))
-----BEGIN PGP SIGNATURE-----
iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCY/5nFhwccm9iaW4ubGlz
dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVbZ0An0o6mwAhm+0anRBTYhCS
3rJadeuBAJ47ttyVOISyx2z+dN9nLr+gYo1EpQ==
=dkRD
-----END PGP SIGNATURE-----