开发者

Router needed for emulator?

开发者 https://www.devze.com 2023-02-12 12:54 出处:网络
I am having trouble running my Emulator on the development machine. I am using a laptop with a USB Modem. The Emulator can access the internet, but cannot connect to my Apache server on the laptop. In

I am having trouble running my Emulator on the development machine. I am using a laptop with a USB Modem. The Emulator can access the internet, but cannot connect to my Apache server on the laptop. In resaearching the problem, I read the router could be the problem, do I need a router before this works, do I have one already? This is my first app and Im not sure where to go from here, below is the code I am using to connect to the Apache server from the App:

HttpClient httpclient = new DefaultHttpClient();
HttpPost httpPost = new HttpPost("http://10.0.2.2开发者_运维技巧:3128/YES_BUTTON.php");
httpclient.execute(httpPost);

Apache is listening on port 3128.

I do not have a proxy setup or a firewall on the laptop.

Any ideas?

Much Appreciated, Graeme.

0

精彩评论

暂无评论...
验证码 换一张
取 消