DEV Community

Esmaeil Elkassem
Esmaeil Elkassem

Posted on

Answer: How can I access my localhost from my Android device?

This solution is usable when your mobile device and computer is not in same network:

You need to use port forwarding in this case. In the Google chrome inspect window (chrome://inspect) You can see the connected devices. enter image description here

Click on the port fowading button, and set a random port say 3000…

Top comments (1)

Collapse
 
dilutewater profile image
Rachit Khurana

A better option would be to use tunneling.
You can use ngrok or cloudflare argo tunneling.