DEV Community

Discussion on: Explain me Ngnix

Collapse
 
sergeypodgornyy profile image
Sergey Podgornyy

If you have a stable public IP, you can make your local website public. If you have it and your webserver is running, then you'll be available to access your website in the browser using http protocol, fe. http://18.197.136.105.

If you want to make your website available under some domain, you have to register it globally in DNS. Usually, .com is cheap and costs about $10 per year. When you'll register it, you can redirect all request for this domain to your IP.

But, as Jonathan mentioned, your home IP in most cases is unstable and it can be changed from time to time. Moreover, to have a stable website, you have to have your local machine and webserver always running, so you either need to run your private computer always up or have dedicated webserver at home. But it doesn't worse it 😉 Better host your website somewhere remote, in the cloud, fe. AWS EC2 or DigitalOcean. It costs about $5 per month for the cheapest instance.