【问题标题】:IOException: failed to connect to /192.168.70.1 (port 9900): connect failed: ETIMEDOUT (Connection timed out)IOException:无法连接到 /192.168.70.1(端口 9900):连接失败:ETIMEDOUT(连接超时)
【发布时间】:2015-07-12 04:58:06
【问题描述】:

当我尝试在 Eclipse 中运行我的 android 应用程序时遇到此异常:

IOException: failed to connect to /192.168.70.1 (port 9900): connect failed: ETIMEDOUT (Connection timed out)

会有什么问题?

【问题讨论】:

    标签: java android


    【解决方案1】:

    为时已晚,但我想更好的方法是在防火墙上打开 9900 端口。 控制面板\所有控制面板项\Windows Defender 防火墙然后选择高级设置为端口的入站和出站创建规则。就是这样

    【讨论】:

      【解决方案2】:

      我终于在这里找到了解决方案:

      解决方案 1:确保您的 Windows 防火墙关闭。

      控制面板-->系统和安全-->Windows防火墙-->打开或关闭Windows防火墙-->关闭Windows防火墙。

      解决方案2:

      进入CMD-->右键-->以管理员身份运行-->是-->ipconfig-->回车

      用 IPv4 地址替换 IP..

      这里的罪魁祸首是系统“IP”出了问题。请以管理员身份检查您系统的 IP..

      注意:一旦检查,有时IP地址也会随机变化。

      愿它对像我这样的人有所帮助..

      谢谢..

      【讨论】:

      • 请勿在此处发布文字图片。
      【解决方案3】:

      控制面板\系统和安全\Windows Defender 防火墙\打开或关闭 Windows Defender 防火墙\专用网络设置\关闭 Windows 防火墙。

      它对我有用。

      【讨论】:

      • 这是接受的答案描述为解决方案 1 的 99%。
      • 如果您仍然使用 eclipse 来运行 android 应用程序而不是 Android Studio,那就太好了;P
      猜你喜欢
      • 2016-01-02
      • 2012-05-31
      • 1970-01-01
      • 2017-07-25
      • 2021-10-22
      • 1970-01-01
      • 2014-11-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多