Accessing localhost from mobile devices

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

Accessing localhost from mobile devices

Postby mbenic » 25. July 2021 13:40

hi
im running xampp on a windows ten home computer
i have disabled the firewalls
can someone tell me what i have to do to access localhost from my mobile
ive tried using the ip address but i keep getting error - this site cant be reached
thanks very much
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: Accessing localhost from mobile devices

Postby Altrea » 25. July 2021 15:52

you just need to request the LAN Ip. if your firewall and your webapplication is configured properly, this should work.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Accessing localhost from mobile devices

Postby mbenic » 28. July 2021 12:47

hi
thanks for reply
i still cant access my website
my ipv4 address is 192.168.1.6
thats the ip im using

i have allowed apps
apache server
mysld
chrome
to communicate through firewall
both private and public networks

is there any other program that i should enable through the firewall

is there anythign on xampp that i need to configure ?
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: Accessing localhost from mobile devices

Postby Altrea » 28. July 2021 12:53

what is happening exactly if you request http://192.168.1.6/ in your mobile browser?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Accessing localhost from mobile devices

Postby mbenic » 28. July 2021 15:13

ok , looks like i can reach ip 192.168.1.6
but when i navigate to one of the subfolder (website folders )
eg 192.168.1.6/waps/
i get error an message:

http://localhost/waps/ is unreachable
try checking the connection

so ip 192.168..1.6 is accessible via mobile - and it takes me to the xampp dashboard
but other folders are not

thats how it is at the moment
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: Accessing localhost from mobile devices

Postby mbenic » 28. July 2021 15:29

i think it has something to do with the word localhost
mbenic
 
Posts: 47
Joined: 05. July 2021 13:16
XAMPP version: 8.07
Operating System: windows 10

Re: Accessing localhost from mobile devices

Postby Nobbie » 28. July 2021 16:10

Yes, your script/software (i dont know) redirects to "localhost" (what you might have specified at installation), but "localhost" is a special domain, it always yields to the requesting device itself (i.e. your smartphone). You should have applied 192.168.1.6 instead of "localhost" when installing your software. Maybe you still can change it in any kind of configuration file.
Nobbie
 
Posts: 13182
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 102 guests