u/drmikesamy

A P2P alternative to Ngrok or Cloudflare Tunnels using Iroh!
▲ 25 r/microservices+2 crossposts

A P2P alternative to Ngrok or Cloudflare Tunnels using Iroh!

I've been experimenting with Iroh. As a dev one thing that I always find annoying is having to spend time working out how to either host a service on a cloud instance, use a third party like Ngrok or Cloudflare for reverse tunnelling etc. I'd like the process of showing anyone whatever is on my PC easier.

So I made this utility. I used npx because while I don't personally use it, it is by far the easiest way to get it in front of lots of devs so I can get feedback and improve it.

Build and run from source:

cargo run -- share 3000

Run with npx (no global install):

npx p2p-tunnel share 3000

On another machine (or another terminal), connect using the ticket printed by share:

cargo run -- connect <TICKET>

Or with npx:

npx p2p-tunnel connect <TICKET>

https://github.com/drmikesamy/p2p-tunnel

https://www.npmjs.com/package/p2p-tunnel

u/drmikesamy — 16 hours ago