Access localhost from remote computer with host ip 127.0.0.1

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Access localhost from remote computer with host ip 127.0.0.1

Postby tasmank1234 » 25. July 2015 00:48

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?
tasmank1234
 
Posts: 5
Joined: 25. July 2015 00:42
Operating System: OS X YOSEMITE

Re: Access localhost from remote computer with host ip 127.0

Postby Nobbie » 25. July 2015 12:28

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Access localhost from remote computer with host ip 127.0

Postby tasmank1234 » 25. July 2015 15:12

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?
tasmank1234
 
Posts: 5
Joined: 25. July 2015 00:42
Operating System: OS X YOSEMITE

Re: Access localhost from remote computer with host ip 127.0

Postby Nobbie » 25. July 2015 21:38

tasmank1234 wrote:Why that happen, could you explain it to me?


No i cannot. Probably you have installed Xampp as well on remote computer.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Access localhost from remote computer with host ip 127.0

Postby tasmank1234 » 25. July 2015 23:16

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
Last edited by tasmank1234 on 25. July 2015 23:21, edited 1 time in total.
tasmank1234
 
Posts: 5
Joined: 25. July 2015 00:42
Operating System: OS X YOSEMITE

Re: Access localhost from remote computer with host ip 127.0

Postby Nobbie » 26. July 2015 20:46

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Access localhost from remote computer with host ip 127.0

Postby tasmank1234 » 27. July 2015 08:06

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?
tasmank1234
 
Posts: 5
Joined: 25. July 2015 00:42
Operating System: OS X YOSEMITE

Re: Access localhost from remote computer with host ip 127.0

Postby Nobbie » 27. July 2015 12:23

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Access localhost from remote computer with host ip 127.0

Postby tasmank1234 » 27. July 2015 12:50

Ok thank you very much and sorry for the confusion
tasmank1234
 
Posts: 5
Joined: 25. July 2015 00:42
Operating System: OS X YOSEMITE


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 35 guests