I set up an Apache on my local network. I can browse to the server using ip address and localhost on the machine where the server is installed. But, I can’t access it from any other machine on my local network.All attempts result in browser error message saying site can’t be reached.
I can ping the server machine and I can ssh into the server machine from other machines on the local network. I tried curl and got an error message saying no route to host.
I’ve checked the Apache config file several times and don’t see anything in it. The Apache access log doesn’t show any attempts at access except for when I use browser on the server machine. The error log only shows notices, no errors.
Seems to be something on my local network that is blocking tcp, but I can’t figure it out. Both machines are running Manjaro and I don’t have any firewalls turned on.
In /etc/httpd/conf/httpd.conf file what do you have in “Listen” line?
should be “Listen= 192.168.0.1/24”
And look for any “allow” or “deny” options in configurations.
ddns - I added the changes to httpd.conf that you recommended. Didn’t help. Still can’t connect and curl still shows no route to host. Results are shown below.
curl http://192.168.1.178
curl: (7) Failed to connect to 192.168.1.178 port 80: No route to host
Also, I still can’t connect using a browser and telnet still shows no route to host.
telnet 192.168.1.178
Trying 192.168.1.178...
telnet: Unable to connect to remote host: No route to host
Both machines (one I’m connecting from and server) are set up for static ip addresses with DNS server set to 192.168.1.1. Both machines are on same LAN. No firewalls. Could there be something else with my network set up? I don’t understand the ‘no route to host’ error.
This looks weird. The time is to fast to be a successful ping connection between 2 system via a copper cable. I mean 0.7ms would look fast but ok, but everything below 0.5ms is just to fast.
And the !X means “communication administratively prohibited”. So the fast times are possible because the packages never left your system.
I would say, back to some sort of firewall theory. Something is actively blocking packages. Maybe you run some sort of iptables command, that does more then you thing.
I figured it out based on xabbu’s comments about the speed of the traceroute. I had checked a couple of times to see if Manjaro had a firewall running by default, but hadn’t found any evidence that a firewall was running.
I executed a ‘ps aux | grep python’ command to find the PID to kill the python server I had started, That’s when I noticed a process called ‘firewalld’ was running. A bit more research, revealed that the firewalld daemon is automatically started in Manjaro.
Bottom line: The firewall was blocking the connection. As xabbu correctly predicted, the traceroute speeds were much too fast. Now they are in the 1.9ms range.
Really appreciate everyone’s help in getting to the bottom of this.