Page 1 of 1

Accessing localhost from mobile devices

PostPosted: 25. July 2021 13:40
by mbenic
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

Re: Accessing localhost from mobile devices

PostPosted: 25. July 2021 15:52
by Altrea
you just need to request the LAN Ip. if your firewall and your webapplication is configured properly, this should work.

Re: Accessing localhost from mobile devices

PostPosted: 28. July 2021 12:47
by mbenic
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 ?

Re: Accessing localhost from mobile devices

PostPosted: 28. July 2021 12:53
by Altrea
what is happening exactly if you request http://192.168.1.6/ in your mobile browser?

Re: Accessing localhost from mobile devices

PostPosted: 28. July 2021 15:13
by mbenic
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

Re: Accessing localhost from mobile devices

PostPosted: 28. July 2021 15:29
by mbenic
i think it has something to do with the word localhost

Re: Accessing localhost from mobile devices

PostPosted: 28. July 2021 16:10
by Nobbie
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.