Why my access from my mobile to my computer network doesn't work?

This is a solution that I found to make it works when this trouble happens. It is not technical (or I don't think so) but it works for me and it's the following:

  1. I connect my mobile device to the computer via USB.
  2. I run my server (in my case XAMPP).
  3. I'm connect via WIFI to the same network from my mobile device as from my computer.
  4. I went to CMD, copy the IP of my computer and put it on the browser of my mobile phone, but it doesn't work.

If I do the steps that I put above it doesn't work. So, what I have to do to solve this problem?

When I have configurated all the steps that I put above and this error ocurrs, I have to disable the WIFI from my mobile device. When I enable it again it works perfectly!

I don't have any idea about why it happens, and I know that it's not a very technical answer but I mark as accept because I think it can help another people.

If some of you have another solution to this problem or if you know why it is correct with my solution please let me know.


If the site isn't reachable locally (it's not clear from your question), it might be that Apache isn't really running. One common scenario is that Apache crashes, leaving behind a httpd.pid file indicating that Apache is still running even though it's not. This could explain why the error seems to occur randomly. Stop Apache, remove httpd.pid (possibly located at /opt/lampp/logs/httpd.pid) and start Apache again. Also, check the Apache log for errors. (The error log can be found in the <xampp-install-location>/apache/logs directory.)


When you use a wifi network to communicate you don't need connecting the usb cable except of using usb debugging. I suggest the following solutions:

  1. Turn the windows firewall off. (or other antivirus firewalls or proxy softwares)
  2. Change your system IP address manually and use it in the android.
  3. Stop and start XAMPP. (If possible change the XAMPP default port).
  4. Check your mobile proxy setting. (you can simply forget the wifi and reconnect it).

Also to be sure if problem is from your PC or not you can use a second PC or Laptop and open the webpage from a browser.