Saturday, 15 February 2014

windows - local host connection in same network -


I am trying to connect from my local host to another computer. I changed the host files to add the following at the end of the file: 127.0.0.1 privacy.local

And in my httpd-vhosts, I added the following: DocumentRoot "/ xampp / htdocs / App / "server name privacy. Local

On my computer, I am able to access my website using privacy.local and my IP address. However, when I try to access it from my other computer, it does not work. I have also edited the host file with my IP address and server name for other computers.

Does anyone know how and how to correct this problem?

i xampp - apache

There is nothing like a localhost in a network. You connect a host on a network adapter. Localhost is a virtual adapter to allow connections on a host without specifying the IP address of the network card. Each host has its own localhost .

You should use the adapter IP address that is used to connect to the network, usually one and only network card.

If you have DNS support, you should use the host name instead of the IP address, as the IP address can change if it is assigned by DHCP.


No comments:

Post a Comment