android connect to PC's localhost when debugger on mobile device

前端 未结 5 927
梦谈多话
梦谈多话 2020-12-05 10:36

I want to debug my android application, I connect the android device to my PC using the USB cable. In my application there is a button to connect with localhost, ip for loca

5条回答
  •  感情败类
    2020-12-05 11:06

    For that you need to make some changes in your xampp server... Assign 1 static IP address to your system and then you need to put your xampp server in online mode. after that you can use that ip address in your android application instead of 10.0.2.2. Works fine for me as i am using my localhost with my android application.

提交回复
热议问题