Join Nostr
2026-01-22 01:58:57 UTC

Paul Hoffman on Nostr: $diety help me for asking what should be a simple a technical how-to on Mastodon but: ...

$diety help me for asking what should be a simple a technical how-to on Mastodon but: is there a good way for a Python script to check if it is running on a system with IPv6 connectivity to "the Internet". All the search results I got (on Kagi, FWIW) had answers that were the moral equivalent of "Look up the IPv6 address of www.google.com and { send an HTTP request | open a TCP socket }".

I dearly hope that there is some better way that doesn't involve this level of hack, but I suspect that this really might be close to the best that one can do. (I'll swap in "example.com" but, still, ugh.)