Quantcast
Channel: How can I access my localhost from my Android device? - Stack Overflow
Viewing all articles
Browse latest Browse all 49

Answer by Omar Khaium Chowdhury for How can I access my localhost from my Android device?

$
0
0

If you are using a real device and still facing the problem, follow these steps as these steps help me to solve the issue:

  1. Make sure both the mobile device and the laptop are on the same WiFi network.
  2. verify your targeted URL has a port number, something like this:https://localhost:44301
  3. run this command on the Android Studio terminal, adb reverse tcp:44301 tcp:44301
  4. replace 44301 with your port number

Hopefully, you will be able to run without any issue.

Happy codding

Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>