Android模拟(simulator)把它本身做为了localhost,也就是说,代码中使用 localhost或者127.0.0.1来访问,都是访问模拟器本身!android
若是你想在模拟器simulator上面访问你的电脑,那么就使用android内置的IP 10.0.2.2。即“http://10.0.2.2:xxxx/Default.aspx”。spa