Welcome 微信登录

首页 / 操作系统 / Linux / Android模拟器将本地PC机当服务器

Referring to localhost from the emulated environment If you need to refer to your host computer"s localhost, such as when you want the emulator client to contact a server running on the same host, use the alias 10.0.2.2 to refer to the host computer"s loopback interface. From the emulator"s perspective, localhost (127.0.0.1) refers to its own loopback interface.本地调试时,在模拟器上可以使用 10.0.2.2 ,这个地址对应PC机的 127.0.0.1 , 本人亲自验证,有效。
Android 真机连接本地PC服务器Linux 禁用和启用触摸板相关资讯      Android应用开发 
  • 提高Android应用开发效率的小工具  (05月01日)
  • 《Android应用开发》.((美)Chris   (03/06/2014 16:54:38)
  • Android 中强制关掉指定的应用  (02/18/2013 08:19:27)
  • 在Android迷你广告上添加浮动的关  (11/06/2014 16:16:26)
  • Android 应用开发者必看的 9 个   (01/20/2014 09:02:15)
  • Android 应用开发笔记 - 图片视图  (09/16/2012 10:44:31)
本文评论 查看全部评论 (0)
表情: 姓名: 字数