Hacker News new | ask | show | jobs
by flycatcha 954 days ago
The tutorial talks about how to do a local webserver where you manually navigate to the IP address. How is this being served over the internet?
2 comments

yes, I have a static IP and port forwarded. It IP can be mapped to website (dns name) via namecheap and godaddy like services. This is enough to put it on internet

In this setup I added a nginx in between (doesn't enable cache yet) for load balancing.

DNS and port forwarding.
And probably buying a static IP from your ISP.
Just DDNS
Not all home ISPs give you an entire IPv4 address. Some have fewer IPs than subscribers and thus use a NAT. Sometimes a very restrictive one.
In Europe, most ISPs use carrier graden NAT nowadays
You can get around the issues of CG-NAT by setting up a reverse tunnel to an external server you control.
nginx reverse proxy