Using go-libp2p, unable to find external peers

I’m following the example code in this article for peer discovery with go-libp2p. I’m trying to discover peers outside my network. Right now, this code only discovers peers on the same network. What is required to find external peers?

1 Like

Reading the readme.md here might be useful:

(Specifically the last code block)

You can use the DHT module for peer routing to discover common peers.