安卓模拟器访问本机apache服务器是显示:java.net.ConnectException: Failed to connect to localhost
无法访问
因为安卓模拟器把自己作为localhost(127.0.0.1),这时候得通过安卓内置的IP访问电脑本机
10.0.2.2
安卓模拟器访问本机apache服务器是显示:java.net.ConnectException: Failed to connect to localhost
无法访问
因为安卓模拟器把自己作为localhost(127.0.0.1),这时候得通过安卓内置的IP访问电脑本机
10.0.2.2
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。