Page 1 of 1

Access localhost from remote computer with host ip 127.0.0.1

PostPosted: 25. July 2015 00:48
by tasmank1234
Hi i don't know if this is correct but when i access xampp localhost from remote computer everything works fine with host ip 127.0.0.1.
I know that 127.0.0.1 is only to connect to localhost from your computer and i know that with 0.0.0.0 i can access xampp
from remote computer. Is that correct or there is another option?

Re: Access localhost from remote computer with host ip 127.0

PostPosted: 25. July 2015 12:28
by Nobbie
tasmank1234 wrote:access xampp localhost from remote computer everything works fine with host ip 127.0.0.1.


No, this is not right. 127.0.0.1 / localhost works only on the SAME computer where Xampp is installed.

tasmank1234 wrote:and i know that with 0.0.0.0 i can access xampp
from remote computer.


No, still wrong. If you want to access Xampp from a different computer in your LAN, you must use the LAN IP of the Xampp PC (i.e. something like 192.168.1.20). Instead of an IP you can also use the Computer Name of the Xampp Computer, which is provided in the System Setup. For example if the Xampp PC is called "myserver"", you can also enter http://myserver on any PC in your LAN to access Xampp.

Re: Access localhost from remote computer with host ip 127.0

PostPosted: 25. July 2015 15:12
by tasmank1234
Ok I agree with the second but with the first question when I change the host ip from the configuration to 127.0.0.1:80 everything works fine from remote computer. Why that happen, could you explain it to me?

Re: Access localhost from remote computer with host ip 127.0

PostPosted: 25. July 2015 21:38
by Nobbie
tasmank1234 wrote:Why that happen, could you explain it to me?


No i cannot. Probably you have installed Xampp as well on remote computer.

Re: Access localhost from remote computer with host ip 127.0

PostPosted: 25. July 2015 23:16
by tasmank1234
No.. I can see xampp from my mobile, that's why i wonder what's going on...
With google app engine server if you know when i set to 127.0.0.1, i can't access from remote ( mobile ). Only with Xampp this happens

Re: Access localhost from remote computer with host ip 127.0

PostPosted: 26. July 2015 20:46
by Nobbie
tasmank1234 wrote:No.. I can see xampp from my mobile, that's why i wonder what's going on...


This is not, what you said before, You said, you can access Xampp (from your Mobile?) via 127.0.0.1 and i still dont believe that.

tasmank1234 wrote:With google app engine server if you know when i set to 127.0.0.1, i can't access from remote ( mobile ). Only with Xampp this happens


Sorry, i dont understand. Its very confusing, but still, with 127.0.0.1 you CANNOT access a different server than the local PC / local Mobile etc. That is definately IMPOSSIBLE.

Re: Access localhost from remote computer with host ip 127.0

PostPosted: 27. July 2015 08:06
by tasmank1234
No i said that from my Xampp Computer i change IP address from httpd.conf to listen to 127.0.0.1:8080.
Now when i type from my mobile the local ip of the Xampp Computer f.e (192.168.1.8:8080) or the external ip f.e(92.62.92.259:8080), I can access Xampp Computer.
I wonder if in httpd.conf , IP address 127.0.0.1:8080 is correct to listen?

Re: Access localhost from remote computer with host ip 127.0

PostPosted: 27. July 2015 12:23
by Nobbie
tasmank1234 wrote:No i said that from my Xampp Computer i change IP address from httpd.conf to listen to 127.0.0.1:8080.


No you did not tell anything about httpd.conf and LISTEN. That is, what you wrote:

i access xampp localhost from remote computer everything works fine with host ip 127.0.0.1.


A completely different statement! This definately sounds as if you enter http://127.0.0.1 in the remote browser and access Xampp.

Anyway, now it is clear and this is correct behaviour of Apache (i.e. TCPIP), as 127.0.0.1 is only a so called "loop back" IP and if you want to access that Server from external, any valid external IP (you assign more than one IP to the Server) can be taken.

Re: Access localhost from remote computer with host ip 127.0

PostPosted: 27. July 2015 12:50
by tasmank1234
Ok thank you very much and sorry for the confusion