3 ms·
This seems like a good alternative to Ngrok if you need to be able to share a temporary server with someone else. What I've been doing for my own work, in the
by ravenstine 4y ago
This seems like a good alternative to Ngrok if you need to be able to share a temporary server with someone else.
What I've been doing for my own work, in the case that I need to access a server from one device on another, is to use Yggdrasil.
https://yggdrasil-network.github.io/ https://yggdrasil-network.github.io/
Yggdrasil is essentially a p2p VPN where peers have IPv6 addresses that are declared by their public/private keys. I set up a dedicated peer as a nano EC2 instance in AWS so that my devices can reach each other no matter where they're located or what sort of firewall they're behind. My EC2 instance also provides a nameserver for my Yggdrasil peers.
I know it's not exactly the same as Ngrok, but I've found it really useful for development purposes and simply for the purpose of being able to control my devices. My phone, both my Macbooks, Raspberry Pi, and even my car stereo are peers on my Yggdrasil network. The downside is sharing with a 3rd party means they need to install Yggrasil, that is unless you set up a public web server to act as a "tunnel" to the web servers in your network.
Before someone mentions security, not all of my devices are connected all the time (e.g. my phone), and my EC2 peer whitelists which peers can connect.
- thefreeman 4y agoSounds like your setup is working for you, however just so you know tailscale solves this exact problem without requiring you to run an ec2 server and adds all kinds of niceties like ACLs, magic dns, designating exit nodes, etc. It’s super simple to setup as well. No affiliation just a happy user.
- ravenstine 4y agoHaven't used Tailscale, but it sounds like a pretty good service. I think something like that can be the right way to go for people who really want minimal hassle and configuration. The app also looks really good. Yggdrasil is pretty dang easy, though. If you don't have your own clearnet peer, there's plenty of public peers on the main net to use. I just prefer using my own peer because I don't intend on sharing my network with other parties. The EC2 server isn't hard to setup and costs peanuts to run. Everything else basically just works as long as you have one or more peers configured. I haven't had a situation where I couldn't get it to work in a few minutes. > designating exit nodes As far as I'm aware, that's not a feature of Yggrasil. My understanding is if the IP for a connection falls out of its range (it uses some deprecated range of IPv6 addresses that are technically still valid), it just passes it through without treating it like a potential peer.