LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   view apache home page from another machine. (https://www.linuxquestions.org/questions/linux-newbie-8/view-apache-home-page-from-another-machine-4175506280/)

casperdaghost 05-28-2014 08:22 AM

view apache home page from another machine.
 
I installed Apache on a machine with a host ip of 192.168.1.11.
when i http://localhost into a browser on that machine (192.168.1.11) i can see the apache web page "it works" . and if i type in 192.168.1.11 on that host, i see the apache web page "it works". however when i type in http://192.168.1.11 from another host on the same LAN - I get a connection timeout. I cannot see the page.

I tried opening up the port on the host machine 192.168.1.11

Code:

[FEDORA_CASPER@new-host-3 ~]$ sudo /sbin/iptables -A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT
[FEDORA_CASPER@new-host-3 ~]$

what is my next trouble shooting step. 192.168.1.11 is running fedora20

TenTenths 05-28-2014 08:43 AM

Turn your firewall totally off on 192.168.1.11 and see what happens.

For what it's worth my iptables entry to open port 80 is just:

Code:

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT

casperdaghost 05-28-2014 08:53 AM

thank you...WORKS

Code:

[FEDORA_CASPER@new-host-3 ~]$ sudo iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
[FEDORA_CASPER@new-host-3 ~]$ sudo systemctl restart iptables.service
[FEDORA_CASPER@new-host-3 ~]$



All times are GMT -5. The time now is 06:54 PM.