How to access VM's address from host computer?
How to access VM's address from host computer?
Scenario: Hostname: LinuxMint Quote:
From within the CentOS7 VM, I am able to display index.html in Firefox using url http://localhost or http://192.168.122.216/ Quote:
I can ping the VM's address from host, but not display its web page. Why? Is there a way to do this? Alternatively, if my host IP address is 192.168.0.14, I can ping it also from the VM's side: But not able to access index.html on host side with Firefox via http://192.168.0.14. |
A couple of questions for starters:
Is port 80 open to external calls in the VM? (That's the default port for www.) Can you ssh into the VM? |
@frankbell:
Here is the address : port setting in httpd.conf: Quote:
|
Run
Code:
iptables -nvL Also Code:
netstat -tanp |
I am using CentOS7, and firewalld is running.
So I cannot run iptables due to conflicts. Quote:
Quote:
And the address corresponds to interface inet 192.168.122.216/24. |
well, use whatever C7 cmd is equiv; you need to chk if firewall is open...
|
@chrism01:
Thanks. I turned off firewalld on port, and it worked. Quote:
|
All times are GMT -5. The time now is 07:43 AM. |