Can't access Apache on VM via LAN


Swartz

I installed a CentOS machine on VMware Fusion and connected it to the LAN via a bridge connection. everything works fine and i can

  1. Surf the Internet from the guest computer.
  2. Ping other network machines from the guest.
  3. Ping the guest computer from the host computer and other computers on the network.
  4. Connect via SSH from the host to the guest and from all other computers on the network.

But the Apache server installed on the client is not accessible from any computer . It only answers locally, type 127.0.0.1, and also enter the guest network address.

I am trying to solve:

1. Checking the httpd.conf if it was listening on 80 and if external connection was allowed 2. Disabling the firewall

And I'm absolutely sure all the machines are on the same network.

But no change. What's wrong? Suggestions or ideas are welcome.

System administrator

Disable SELinux, or at least put it in permissive mode.

You are looking at configuration files, but you should be looking at:

netstat -punta | grep LISTEN

Real life is there. If your apache server is not listening here, make sure you have edited the config file as is, then restart the service and check again.

If it still doesn't work, refresh iptables (they should be gone when you stop the firewall, but it's worth a try):

iptables -F

Make sure there is nothing there:

iptables -L

Restart apache and check again. Still not working? Then you made a mistake on the config file, so I recommend using

tail -f /var/log/httpd/error_log

(or where is your error log)

and restart the service, you might see some errors that might be causing this, like permissions or something like that.

Related


Can't access Apache on VM via LAN

Swartz I installed a CentOS machine on VMware Fusion and connected it to the LAN via a bridge connection. everything works fine and i can Surf the Internet from the guest computer. Ping other network machines from the guest. Ping the guest computer from the ho

Can't access LAN PC via IP after changing ISP?

Mitia We have two PCs running a local server (XAMPP) and we are always able to see each other's work in the browser via the local IP, e.g. http://192.168.1.86/some/website/folder We changed ISP and brought a new router with it (via ethernet, no wifi) and the l

Can't access Apache on VirtualBox VM (using NAT + host only)

Said Muhammad| short introduction: My host OS is Ubuntu-12.04 and have setup a virtual machine of Oracle Linux 6.4 (RHEL based) with Apache httpd web server using VirtualBox. I need to access a web page served by a VM from the host Ubuntu. Additional details:

Can't access Apache on VirtualBox VM (using NAT + host only)

Said Muhammad| short introduction: My host OS is Ubuntu-12.04 and have setup a virtual machine of Oracle Linux 6.4 (RHEL based) with Apache httpd web server using VirtualBox. I need to access a web page served by a VM from the host Ubuntu. Additional details:

Can't access Apache on VirtualBox VM (using NAT + host only)

Said Muhammad| short introduction: My host OS is Ubuntu-12.04 and have setup a virtual machine of Oracle Linux 6.4 (RHEL based) with Apache httpd web server using VirtualBox. I need to access a web page served by a VM from the host Ubuntu. Additional details:

Can't access LAN in chroot

Andy Castille I'm running Ubuntu 12.04 x32 in a Chroot environment (using Crouton) on a Chromebook. It works perfectly and has internet access. However, it can't access computers on the local network (it won't discover Minecraft LAN devices, but others can and

Can't access LAN in chroot

Andy Castille I'm running Ubuntu 12.04 x32 in a Chroot environment (using Crouton) on a Chromebook. It works perfectly and has internet access. However, it can't access computers on the local network (it won't discover Minecraft LAN devices, but others can and

Can't access LAN in chroot

Andy Castille I'm running Ubuntu 12.04 x32 in a Chroot environment (using Crouton) on a Chromebook. It works perfectly and has internet access. However, it can't access computers on the local network (it won't discover Minecraft LAN devices, but others can and

Can't access my apache server from external LAN (Raspberry Pi)

ml I know this question is asked a lot, but unfortunately none of these posts are really helpful. I am trying to setup an Apache server on a Raspberry Pi. I think I have it set up correctly, but I can't access it from outside the LAN. I thought maybe my ISP wa

Can't access my apache server from external LAN (Raspberry Pi)

ml I know this question is asked a lot, but unfortunately none of these posts are really helpful. I am trying to setup an Apache server on a Raspberry Pi. I think I have it set up correctly, but I can't access it from outside the LAN. I thought maybe my ISP wa

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

Can't access Samba share on other LAN

username I have two different LANs in my home network, 192.168.0.1 (modem/switch) and 192.168.1.1 (router). The switch is connected to the modem and it has access to my PC, the 192.168.0.0/24 range. There is also a router attached to the modem that gives wirel

Bluemix VM can't connect via SSH

Howard Liu As my thread states, I can't connect to the server via ssh, but I can connect to the server via Horizon. My region is USA. I tried CentOS 7 and Ubuntu 14.10 provided by Bluemix. I use a security group to enable all data (either ipv4 or ipv6, whateve

Bluemix VM can't connect via SSH

Howard Liu As my thread states, I can't connect to the server via ssh, but I can connect to the server via Horizon. My region is USA. I tried CentOS 7 and Ubuntu 14.10 provided by Bluemix. I use a security group to enable all data (either ipv4 or ipv6, whateve

Unable to access Openstack VM on LAN

user 0011 I'm having trouble accessing an Open Stack VM on a LAN. I have setup a single machine (192.168.2.15) opensatck with devstack, so all VMs are running on this machine My machine (192.168.2.15) has a network card (eth0), I have Nova Networks and have no

Unable to access Openstack VM on LAN

user 0011 I'm having trouble accessing an Open Stack VM on a LAN. I have setup a single machine (192.168.2.15) opensatck with devstack, so all VMs are running on this machine My machine (192.168.2.15) has a network card (eth0), I have Nova Networks and have no

Unable to access Openstack VM on LAN

user 0011 I'm having trouble accessing an Open Stack VM on a LAN. I have setup a single machine (192.168.2.15) opensatck with devstack, so all VMs are running on this machine My machine (192.168.2.15) has a network card (eth0), I have Nova Networks and have no

Can't connect via SSH when connected via LAN

Yadi virus I'm trying to SSH into a Raspberry Pi 3 from a Win10 PC, both connected to the router via WiFi. What I did is, I assigned a static IP to the PC and Raspberry Pi from the router's configuration page, and puTTY kept reporting when I tried to SSH to th

Can't connect via SSH when connected via LAN

Yadi virus I'm trying to SSH into a Raspberry Pi 3 from a Win10 PC, both connected to the router via WiFi. What I did is, I assigned a static IP to the PC and Raspberry Pi from the router's configuration page, and puTTY kept reporting when I tried to SSH to th

Can't access Flask with apache

Dejer I have a linux server on which I run my flask app like this: flask run --host=0.0.0.0 Inside the server, I can access it like this: curl http://0.0.0.0:5000/photo(I got a valid response) However, when I try to access it outside the server: http://my_ip:

Google VM Instant - Can't access SSH

Jeff I have installed ERPNext from Google Click to Deploy since 6 months ago and with that software it worked until last week until I lost access to the system and SSH When connecting using SSH, the system shows that connecting through the Cloud Identity-Aware

Google VM Instant - Can't access SSH

Jeff I've installed ERPNext from Google Click to Deploy since 6 months ago and with that software it worked until last week until I lost access to the system and SSH When connecting using SSH, the system shows that connecting through the Cloud Identity-Aware p

Google VM Instant - Can't access SSH

Jeff I have installed ERPNext from Google Click to Deploy since 6 months ago and with that software it worked until last week until I lost access to the system and SSH When connecting using SSH, the system shows that connecting through the Cloud Identity-Aware

Google VM Instant - Can't access SSH

Jeff I've installed ERPNext from Google Click to Deploy since 6 months ago and with that software it worked until last week until I lost access to the system and SSH When connecting using SSH, the system shows that connecting through the Cloud Identity-Aware p

Guest VM can't get internet access through firewall VM

Howard Ritchie I'm doing the following network setup (using firewall for the first time) and it's not working, not sure where the problem is. I have a Fortigate VM firewall port 1 IP 192.168.132.5 on VMWare's vmnet8 (NAT), the host vmnet8 IP is 192.168.132.1,

Guest VM can't get internet access through firewall VM

Howard Ritchie I'm doing the following network setup (using firewall for the first time) and it's not working, not sure where the problem is. I have a Fortigate VM firewall port 1 IP 192.168.132.5 on VMWare's vmnet8 (NAT), the host vmnet8 IP is 192.168.132.1,

Guest VM can't get internet access through firewall VM

Howard Ritchie I'm doing the following network setup (using firewall for the first time) and it's not working, not sure where the problem is. I have a Fortigate VM firewall port 1 IP 192.168.132.5 on VMWare's vmnet8 (NAT), the host vmnet8 IP is 192.168.132.1,

Can't connect to apache via external IP

Tom Tosi I used to run a web server on a Raspberry Pi and plug it back in, but for some reason it doesn't work anymore with the external IP. The local IP works fine. I use whatsmyip.org to find my external IP. Port 80 is forwarded to my Raspi's IP. Used netsta

Can't connect to apache via external IP

Tom Tosi I used to run a web server on a Raspberry Pi and plug it back in, but for some reason it doesn't work anymore with the external IP. The local IP works fine. I use whatsmyip.org to find my external IP. Port 80 is forwarded to my Raspi's IP. Used netsta