UDP from AndroidEmulator (--Genymotion--) to localhost Server(10.0.2.2) does not work?

拥有回忆 提交于 2019-12-01 11:01:39

Ok, one important thing I forgot to mention is The emulator I use for android is Genymotion.

So, it appears to be that "10.0.2.2" does not point localhost as default.

http://blog.zeezonline.com/2013/11/access-localhost-from-genymotion/

In my environment(OSX 10.9) with Genymotion,the localhost address from the emulator is

"10.0.3.2", and the code works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!