Can't Access Local Site pages from Local Network

I have a website using Nginx server located on Ubuntu i need to access this website from the other network machines, i configured the hosts file well, the Nginx server working well, the postgres sql working well, the firewall is disabled, and it works well on the local machine and site is fine with the local host, but the problem is when i’m trying to open the site on another local network machine using the hosted machine IP it just resolve the machine IP with the site name as it written on the hosts file but it doesn’t bring any of the site pages and give an error that (’s server IP address could not be found.) Please help to to solve this issue. Thanks…

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


I would recommend creating Nginx server blocks for each individual site and in each server, block make sure to define your domain names as the server_name.

You can follow the steps here on how to set up Nginx server blocks:

Hope that this helps! Regards, Bobby