Getting Android to talk to Apache on localhost

后端 未结 5 1217
庸人自扰
庸人自扰 2020-12-24 15:20

My Android application talks to a php server. I have Apache/php running locally on WAMP Server. I am running Windows 7. If I go to localhost on Windows 7 the site shows b

5条回答
  •  自闭症患者
    2020-12-24 16:20

    In general, you can't.

    What you can do, if the computer is on the same wireless network as the Android device, is connect to the computer's internal IP. For example, on a typical home wifi router, the router is at 192.168.1.1, and the devices connected to it are 192.168.1.x. So if your Windows 7 PC is at 192.168.1.5, you should be able to access this from your Android device just fine...

提交回复
热议问题