Just coded up a recursive relay crawler using NIP-65 events for discovery. Over the course of a few hours it discovered a total of 2,761 unique URLs for relays (after discarding a variety of malformed or otherwise unusable relay tags.) Unfortunately, actually going out and attempting a connection with each, only *800* were online and queryable! Not sure what to make of this. Clearly many people need to update their kind 10002 relay lists...
Login to reply
Replies (2)
There were about 41500 kind 10002 events retrieved and processed to get the above, and the most common reasons for failure were failed DNS, connections refused, TLS handshake failure (bad certificates), or connection with no response.
There was a small but significant number of URLs that were discarded without trying because they were unroutable, including bare host names, localhost, .local and .private domains, IP address ranges that were for private use, and broadcast (!) IP addresses.