because you can't connect SN directly to phoenixd without running a web server to expose it publicly. Connecting it via ngrok isn't a direct connection, it relies on a middleman (ngrok) who you need an account with, who may change their terms of service, cut you off, or go bankrupt. And if that happens, there aren't many ngrok replacements to jump to. Doing it via NWC (included in Alby Hub) still involves a middleman (the nostr relay), but you don't need an account with them and there are so many of them, they are easy to replace whenever necessary.
or is Alby Hub resolving the port forwarding too?
Yes, NWC (nostr wallet connect) resolves the need to do port forwarding and it is included in Alby Hub
there aren't many ngrok replacements to jump to.
Anyway, make sense and I agree about ngrok playing as middleman, but we are talking about different things here.
There's no doubt NWC is much easier, but is another type of attached wallet that isn't nearly connected with phoenixd. I'll talk about NCW and AlbyHub in another tutorial.
The issue ngrok solve is the port forwarding and providing a publicly accessible url for a Lightning node installed locally. There are probably few options to do it without third parties involved. But for newbies that just want to connect phoenixd to SN, I'll probably skip that technical mess and reach the goal.
reply
I’m not sure how ngrok behaves for long persistent connections. I think it’s meant for development so it might be the case they close the tunnel if you don’t use it for a while or pay.
reply