【问题标题】:Get time out error when client is connecting to server客户端连接服务器时出现超时错误
【发布时间】:2015-03-21 19:19:35
【问题描述】:

我正在尝试在我的 linux 机器和 android 设备之间进行端口转发,以便我可以通过 USB 相互发送数据。我将它们都连接到的端口是 38300,​​我已经在终端中运行了这个命令; ./adb 转发 tcp:38200 tcp:38200。我运行应用程序并尝试连接,但我收到连接已超时消息。想知道是否有人对此有所了解。我在我的 android 设备上将服务器作为应用程序运行,在我的电脑上运行客户端。

【问题讨论】:

    标签: android linux usb client-server portforwarding


    【解决方案1】:

    尝试打开Android上的所有端口,运行(以root身份):

    iptables -I INPUT -j ACCEPT
    iptables -I OUTPUT -j ACCEPT
    

    有关 iptables 的完整信息read man

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-09
      • 2013-11-30
      • 2022-01-20
      • 2017-08-20
      • 1970-01-01
      • 2020-04-18
      • 2014-10-05
      • 2014-11-04
      相关资源
      最近更新 更多