Page 1 of 1

Newbie question Access to xampp website from my android

PostPosted: 03. April 2016 15:07
by grigione
I have a problem I'm tryng to accces from my android to xampp server installaed in my pc running windows 10 64bit
I have modified the httpd-xampp.conf file in this mode:
Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">

        Require all granted
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>




but in my andoid i can access only at dashboard of apache typing localhost and at phpmyadmin typing localhost/phpmyadmin
If i type localhost/mysite
i get connection refused
any help
Thanks

Re: Newbie question Access to xampp website from my android

PostPosted: 03. April 2016 22:13
by Altrea
grigione wrote:but in my andoid i can access only at dashboard of apache typing localhost and at phpmyadmin typing localhost/phpmyadmin

localhost points to the very own computer it is used from. There is no XAMPP version for Android.
:!: :?:

Re: Newbie question Access to xampp website from my android

PostPosted: 04. April 2016 05:57
by grigione
I want test my website with my smartphone android. How can I do?

Re: Newbie question Access to xampp website from my android

PostPosted: 04. April 2016 10:46
by Nobbie
It depends, how your smartphone is connected to the internet. You *should* connect it to your LAN via your router (same as for the Xampp PC), then simply enter http://xxx.xxx.xxx.xxx in the android browser where xxx.xxx.xxx.xxx is the LAN IP of your Xampp PC.

If your smartphone is NOT connected via your router, but via data line of your smartphone provider, you cannot connect to your Xampp PC in an easy way, you first have to configure your router properly (i.e. PortForwarding) that your Xampp PC is connected to the public WAN. This is not recommended for Xampp and it is quite a lot to do. Therefore connect your smartphone to your LAN and see above.

Re: Newbie question Access to xampp website from my android

PostPosted: 04. April 2016 13:56
by grigione
I'm connected with smartphone to Router with WIFI
My pc use same connection but is connected with lan cable to Router
MY ip address in local pc is 192.168.0.2
If i type http://192.168.0.2 in the browser of my smartphone i can access to dashboard of Xampp The same applies if i type localhost
But if i type in browser of smartphone http://192.168.0.2/mywebsite ( mywebsite is the folder in htdocs where is located my wordpress site) i get a redirect to http://localhost/mywebsite with connection refused message

Re: Newbie question Access to xampp website from my android

PostPosted: 04. April 2016 14:26
by Altrea
Then this is a third party application configuration issue.
Somewhere in your application this redirect is defined.

Try to find a migration guide for your application, very common you need to define a base URL somewhere.