Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I access from my mobile phone to my XAMPP?

I already had a similar issue some months ago: Why my access from my mobile to my computer network doesn't work?

But this time I cannot get any solution to my problem. I have changed my computer and my network (but it is still a home network) so I think it could be something about configuration but I cannot make it to work.

I already have:

  1. XAMPP running both Apache and MySQL.
  2. Apache is running at port 80.
  3. I have allowed a new enter rule on my firewall to allow connections on that port.
  4. I have connected my mobile phone and my computer to the same network.
  5. I have gone to CMD and use the command ipconfig to see the IP of my computer.
  6. I have put on the browser of my mobile phone the IP that I have got on the step before.

Changes I have tried on httpd.conf file:

  1. Change on <Directory /> the directive Require from denied to allow.
  2. Before Listen 80 line I have put Listen IP of my computer:80.

On my computer I have Windows 10.

What configurations can I prove to solve this? I saw a lot of questions related to the same problem but any of them solved my problem.

Thanks in advance!

like image 221
Francisco Romero Avatar asked May 07 '16 00:05

Francisco Romero


People also ask

Can Android run XAMPP?

It runs on Linux, Unix, Mac OSX, Windows and.

How do I access my XAMPP site?

You have an 'Admin' option located on the Control Panel for every module in your XAMPP. Click on the Admin button of your Apache server to go to the web address of your web server. The Control Panel will now start in your standard browser, and you'll be led to the dashboard of your XAMPP's local host.

How do I find my XAMPP IP address?

In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http://localhost. Before you can access the MySQL server, phpMyAdmin will prompt you for a user name and password. Don't forget to set a password for the user "root" first.


1 Answers

You need ngrok

Run at console/Terminal

ngrok http 80

You will get something like :

ngrok by @inconshreveable

Tunnel Status                 online
Version                       2.0/2.0
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://92832de0.ngrok.io -> localhost:80
Forwarding                    https://92832de0.ngrok.io -> localhost:80

Connnections                  ttl     opn     rt1     rt5     p50     p90
                              0       0       0.00    0.00    0.00    0.00

At the cell phone, open at browser the link like this that appears at the console

like image 68
toha Avatar answered Oct 01 '22 23:10

toha