php - How to access the web project in the Linux virtual machine under Windows
phpcn_u1582
phpcn_u1582 2017-05-31 10:33:43
0
5
652

The project is on the Linux virtual server and can be accessed in the virtual machine. I want to access it on Windows. What should I do? I have opened port 80 in the firewall, but I still cannot access it.

Can be accessed in the virtual machine

But you can access the server by entering the virtual machine IP

phpcn_u1582
phpcn_u1582

reply all(5)
世界只因有你

The most likely reason: the host's port 80 is not forwarded to the virtual machine;
Other reasons: the virtual machine's firewall is not turned on; the domain name resolution of the host and virtual machine is inconsistent or wrong

洪涛

It may be a hosts problem. If the virtual machine has set the hosts of the test domain name to map to localhost, then your host should also set the hosts to map the test domain name to the virtual machine IP.

滿天的星座

You must bind hosts and assign your domain name to the server IP address of the virtual machine

给我你的怀抱

Use Notepad to open the hosts file under C:WindowsSystem32driversetc

Add a line at the end

hongbocheng 192.168.1.115

Then save it to the desktop and paste it over the original file

曾经蜡笔没有小新

First ping the ip of the virtual machine under window

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template