News for hackers. Stuff that matters.
Re:Show HN: A tool to self host game servers with a free sta... by scktt on Wednesday June 09, 2021 @10:53PM (#27456180)
i had a similar use case for sharing my plex media server. i am behind a cgnat so dont have a fixed IP address nor can I port-forward if I wanted to. the solution I came up with, involves zerotier and a cheap vps qith a static ip (required as I cant setup zerotier everywhere (apple tvs, chromecasts, iphones, etc.) the vps acts as a relay to the private zerotier network (single address only, the plex server) which allows anyone i have shared my plex server with to access without any setup.

a script to set it all up (debian 8): https://gist.github.com/scktt/b586dd4bf5a19be91a978c6b2abb59...

Re:Show HN: A tool to self host game servers with a free sta... by stevekemp on Thursday June 10, 2021 @01:59AM (#27457260)
I'd look at using an SSH reverse tunnel. If you can connect from the plex-server to a server hosted on EC2, Linode, DigitalOcean, etc, you could expose the service from that.

Something like:

       ssh -f -N -T -R 8080:localhost:80 [email protected] 
Now access to your remote host on port 8080 will be mapped back to your home machine, behind the NAT. You could install nginx as a proxy for it, etc.