Score:0

I can connect to my Webserver website with Ubuntu from an exterior connection not locally

sb flag

Here is my dilemma, if I use http://example.com on my local computer say Windows, MAC or Android using the local home network either Wi-Fi or LAN not using the etc/hosts file or local IP address I get

Hmmm… can't reach this page etc…

On my all my web browsers

However, if I use data on my phone, or another internet connection say from work it works perfectly.

Another curious thing is if I use my VPN locally on my Windows computer, I have no issues.

I am sure it is not an Apache2 problem because I have the same issues in nginx. I have looked everywhere at the web but can't find any answers.

Again it's not the Apache2 or router issue because the port 80 is forwarded and all the sites on it function from external connections.

It must have something to do with local network permissions. I am good with computers, but this one is perplexing. I even asked experts who have 20 years experience, and they all can't explain it. One says that for some reason local IP addresses are being blocked, but that's it. I tried with UFW and iptables firewall but nothing works.

Is there a line command that will solve this networking issue? I even added the Google DNS to the Ubuntu computer. It is a DNS issue because the IP addresses work fine. I tried rebooting the computer, nothing changes. How do I flush the DNS in Ubuntu like Windows using ipconfig? I really don't know, please help!

Doug Smythies avatar
gn flag
When you say "the IP addresses work fine" do you mean the LAN IP Address or the WAN IP Address? As far as I have ever known, one should run a local DNS returning the LAN IP address for example.com for computers on the LAN. Depending on your router, using the WAN IP for example.com might not work.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.