Host - Windows 7

Guest - CentOS 7

I have set up a CentOS VM using VMware Player. I can now connect to the internet (ping google.com, install packages using yum are all successful) after changing the network settings to use DHCP as directed in the reponse to my previous question.

I'm now trying to complete the last part of Step One of this tutorial. But after running ifconfig eno16777736 | grep inet | awk '{ print $2 }' to verify that my VM's IP address is - directing my browser to that address fails to load anything (connection timeout). (I've checked that the httpd service is running.)

I can ping successfully from the command line of the host though.

The network settings for the VM are using NAT. I tried switching to a bridged connection thinking that would work better - but then the VM didn't even appear to have an IP address and couldn't connect to the internet at all - failed to ping (I don't understand exactly what was being changed by doing that).

Can anyone explain how to get the browser to connect to the VM?


When ping works you probably have a firewall rule on the VM which blocks Port 80.

firewall-cmd --get-active-zones to get the zone argument.

firewall-cmd --zone=ZONE --add-service=http --permanent to open the port.

firewall-cmd --reload to activate the rule.

You could substitute --add-service=http with --add-port=80/tcp.

  • Running the first command gives public interfaces: eno16777736 Running the second command (with sudo) gives INVALID_ZONE: ZONE. What should ZONE be substituted with?
    – Kvothe
    Jul 12 '15 at 18:52
  • the zone is "public" then. Jul 12 '15 at 18:57
  • You just saved my life May 9 '18 at 13:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.