Failed to connect to /127.0.0.1:8080(使用retrofit2请求网络的时候出现的问题)
来源:互联网 发布:手机首选网络怎么设置 编辑:程序博客网 时间:2024/06/05 07:13
Failed to connect to /127.0.0.1:8080(使用retrofit2的时候出现的问题)
原因是如果用localhost或者127.0.0.1访问,肯定就是访问到模拟器里了,而不是你的电脑上。
正确做法:
运行——打开cmd——输入ipconfig查看ipv4协议
把地址换成ipv4就可以了,也就是把localhost换成10.19.71.204
阅读全文
0 0
- Failed to connect to /127.0.0.1:8080(使用retrofit2请求网络的时候出现的问题)
- 解决git clone时,出现Failed to connect to 127.0.0.1 port 46759: 拒绝连接的问题
- android 网络请求遇到的坑:connect failed: EHOSTUNREACH (No route to host)
- 解决Nginx的connect() to 127.0.0.1:8080 failed (13: Permission denied) while connect
- 解决Nginx的connect() to 127.0.0.1:8080 failed (13: Permission denied) while connect
- 解决搭载OpenStack时候出现can't connect to mysql server on 'controller'的问题
- 使用叶神模拟器无法访问本机服务器的问题(报错:java.net.ConnectException: failed to connect to /127.0.0.1 (port 5000) )
- Failed to connect to 127.0.0.1:27017
- 编译ltib的时候, 出现failed to compile hotplug
- 解决连接mongoDB出现问题:MongoDB : Failed to connect to 127.0.0.1:27017, reason: errno:61 Connection refused
- dg的alert日志出现Heartbeat failed to connect to standby 'primaryorcl'. Error is 16009
- java.net.ConnectException: failed to connect to /127.0.1.1 (port 8080)的解决办法
- 愚蠢的错误 Failed to connect to 127.0.0.1 port 8888 :conection refused
- ubuntu gedit出错:Failed to connect to the session manager的问题
- ubuntu gedit出错:Failed to connect to the session manager的问题
- ubuntu gedit出错:Failed to connect to the session manager的问题
- ubuntu gedit出错:Failed to connect to the session manager的问题
- ubuntu gedit出错:Failed to connect to the session manager的问题
- Disruptor入门
- 微信小程序之初体验
- Python基础-序列化
- Hibernate 原生native sql支持 返回列名
- poj3268
- Failed to connect to /127.0.0.1:8080(使用retrofit2请求网络的时候出现的问题)
- 如何在本地部署vue+springboot前后端分离应用
- tar命令备份ubuntu系统
- MySQL百万级数据库优化
- spring 5.0 aspecj 08
- 修复节点(一)
- 机器学习笔记(IX)线性模型(V)多分类学习
- 【第六篇blog】第三次模拟赛的反思与解析
- 题解