I’m trying to run meteor on ipv6 but it doesn’t want to work.
Starting with:
meteor run --port [xxxx:…:xxxx]:3000
However, when opening http://[xxxx:…:xxxx]:3000/ I get 404 with “Unknown host”.
I searched through meteor sources for that “Unknown host” error but couldn’t find anything that would cause this thing.
Is anyone running meteor on ipv6 and knows how to resolve this issue?
You should probably run meteor behind a load balancer such as nginx for protocol handling. Meteor runs a vanilla node server to facilitate to get things going. SSL, IP6, Ratelimiting etc and other things should be done by tools suited for the network layer.
Internally you would simply route from I.e. nginx to localhost:3000 as usual.
I know it can be done with a proxy server. But if you want to run multiple instances of meteor it gets pain to setup all the ports and proxy config. With IPv6 you have millions of IPs for each instance with all ports free to use.
IPv6 is the future of internet and it’s a pity that meteor does not support it.
I’m just going to speak off the cuff and without precise numbers, and I’m not saying that Meteor shouldn’t support IPv6, but your argument is completely unfair.
The private IPv4 block 10.0.0.0/24 also has “millions of IPs” (16,777,216, to be precise), and you still have to configure ports exactly the same. You also have to actually keep track of what you’re using either way and you can’t just rambo through using up millions of IPs. You can run (max) 65535 TCP ports on a single IP address (6 or 4) and have even more connections per host (based on your available file descriptors).
So basically, way more applications than you’re ever going to build and way more apps than you’re ever going to have on one machine. With IPv4.
With IPv6 you can just run meteor on random IP, add it to cloudflare and have a fully functional website that is both accessible from IPv4 and IPv6. You don’t have to mess with local proxy servers as you would do with IPv4.