Wednesday, December 8, 2021

Access locally hosted website from LAN?

I have a Ubuntu web server running locally on 192.168.0.x. I have port forwarded my public IP to to this local IP. I have configured my DNS servers to point to my public IP, and now the web server is accessible through domain example.com.

However, when I want to access example.com on a local computer on the network, it doesn't work. Of course, the server is always accessible through 192.168.0.x, but I need for it to be accessible through the domain.

Is there any way I could get this to work?



No comments:

Post a Comment