[GH-ISSUE #2138] 客户端 IP 配置正确但反复超时 — 由 DHCP 导致 IP 变更引起 #1850

Open
opened 2026-10-02 22:21:18 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @poyobi on GitHub (May 10, 2026).
Original GitHub issue: https://github.com/debauchee/barrier/issues/2138

问题描述

客户端反复连接失败,日志如下:

WARNING: failed to connect to server: Timed out
NOTE: connecting to '<服务器IP>': <服务器IP>:24800
INFO: OpenSSL 1.0.2l 25 May 2017

客户端显示服务端 IP 配置正确,服务端也显示 Barrier Server 已启动(server status: active),防火墙规则检查无误。双方重启后问题依然存在。

根本原因

服务端机器被 DHCP 重新分配了 IP,但机器未重启,所以旧 IP 仍在网络中"存活"。客户端实际连接到了占用旧 IP 的另一台设备,TCP 能建立但 TLS 握手无法完成,从而导致反复超时。

完全重启服务端机器(或为服务端分配固定 IP)后可恢复正常连接。

建议

  • 在文档中说明:DHCP IP 变更且机器未重启时,可能出现此现象而无明显错误提示
  • 考虑在 GUI 中增加检查:若本机当前 IP 与配置的服务器 IP 不一致时给出警告
  • 考虑在启动时进行连通性验证,确认配置的服务器 IP 是否为当前本机实际 IP
Originally created by @poyobi on GitHub (May 10, 2026). Original GitHub issue: https://github.com/debauchee/barrier/issues/2138 ## 问题描述 客户端反复连接失败,日志如下: ``` WARNING: failed to connect to server: Timed out NOTE: connecting to '<服务器IP>': <服务器IP>:24800 INFO: OpenSSL 1.0.2l 25 May 2017 ``` 客户端显示服务端 IP 配置正确,服务端也显示 Barrier Server 已启动(server status: active),防火墙规则检查无误。双方重启后问题依然存在。 ## 根本原因 服务端机器被 DHCP 重新分配了 IP,但机器未重启,所以旧 IP 仍在网络中"存活"。客户端实际连接到了占用旧 IP 的另一台设备,TCP 能建立但 TLS 握手无法完成,从而导致反复超时。 完全重启服务端机器(或为服务端分配固定 IP)后可恢复正常连接。 ## 建议 - 在文档中说明:DHCP IP 变更且机器未重启时,可能出现此现象而无明显错误提示 - 考虑在 GUI 中增加检查:若本机当前 IP 与配置的服务器 IP 不一致时给出警告 - 考虑在启动时进行连通性验证,确认配置的服务器 IP 是否为当前本机实际 IP
Author
Owner

@nbolton commented on GitHub (May 10, 2026):

Barrier 已停止开发。请查看 Deskflow(上游)或 Input Leap(分支)。

https://github.com/deskflow/deskflow

https://github.com/input-leap/input-leap

如果此问题在这些项目中仍然存在,我们希望您能将此问题转发到这些项目中。


Barrier is no longer in development. Check out Deskflow (upstream) or Input Leap (fork).

https://github.com/deskflow/deskflow
https://github.com/input-leap/input-leap

If this is still an issue in those projects, we would appreciate a cross-post of this issue.

<!-- gh-comment-id:4416032165 --> @nbolton commented on GitHub (May 10, 2026): Barrier 已停止开发。请查看 Deskflow(上游)或 Input Leap(分支)。 https://github.com/deskflow/deskflow https://github.com/input-leap/input-leap 如果此问题在这些项目中仍然存在,我们希望您能将此问题转发到这些项目中。 ---- Barrier is no longer in development. Check out Deskflow (upstream) or Input Leap (fork). https://github.com/deskflow/deskflow https://github.com/input-leap/input-leap If this is still an issue in those projects, we would appreciate a cross-post of this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github-starred/barrier#1850
No description provided.