10.0.2.2 在模拟器上访问电脑主机的ip地址 电脑本机是localhost 在模拟器上用10.0.2.2 访问它. 转载于:https://www.cnblogs.com/sjjg/p/4665934.html