[GH-ISSUE #4883] connect to server error: connection write timeout #3852

Closed
opened 2026-05-05 14:27:43 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @Meppo on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4883

Bug Description

connect server failed

frpc Version

0.63.0

frps Version

0.63.0

System Architecture

linux/amd64

Configurations

frps-first.toml

bindPort = 23

config/frpc-first.toml

serverAddr = "my-server-ip"
serverPort = 23

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

Logs

server frps log

./frps -c ./frps-first.toml 
2025-07-16 03:13:53.020 [I] [frps/root.go:105] frps uses config file: ./frps-first.toml
2025-07-16 03:13:53.208 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:23
2025-07-16 03:13:53.208 [I] [frps/root.go:114] frps started successfully

client frpc log

./frpc -c config/frpc-first.toml 
2025-07-16 11:14:39.085 [I] [sub/root.go:149] start frpc service for config file [config/frpc-first.toml]
2025-07-16 11:14:39.085 [I] [client/service.go:314] try to connect to server...
2025-07-16 11:14:51.649 [W] [client/service.go:317] connect to server error: connection write timeout
2025-07-16 11:14:51.649 [I] [sub/root.go:167] frpc service for config file [config/frpc-first.toml] stopped
login to the server failed: connection write timeout. With loginFailExit enabled, no additional retries will be attempted

telnet log

telnet my-server-ip 23
Trying x.x.x.x...
Connected to my-server-ip.
Escape character is '^]'.
adfasdfasdfasdf
Connection closed by foreign host.

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Meppo on GitHub (Jul 16, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4883 ### Bug Description connect server failed ### frpc Version 0.63.0 ### frps Version 0.63.0 ### System Architecture linux/amd64 ### Configurations frps-first.toml ```toml bindPort = 23 ``` config/frpc-first.toml ```toml serverAddr = "my-server-ip" serverPort = 23 [[proxies]] name = "ssh" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 ``` ### Logs server frps log ```bash ./frps -c ./frps-first.toml 2025-07-16 03:13:53.020 [I] [frps/root.go:105] frps uses config file: ./frps-first.toml 2025-07-16 03:13:53.208 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:23 2025-07-16 03:13:53.208 [I] [frps/root.go:114] frps started successfully ``` client frpc log ```bash ./frpc -c config/frpc-first.toml 2025-07-16 11:14:39.085 [I] [sub/root.go:149] start frpc service for config file [config/frpc-first.toml] 2025-07-16 11:14:39.085 [I] [client/service.go:314] try to connect to server... 2025-07-16 11:14:51.649 [W] [client/service.go:317] connect to server error: connection write timeout 2025-07-16 11:14:51.649 [I] [sub/root.go:167] frpc service for config file [config/frpc-first.toml] stopped login to the server failed: connection write timeout. With loginFailExit enabled, no additional retries will be attempted ``` telnet log ```bash telnet my-server-ip 23 Trying x.x.x.x... Connected to my-server-ip. Escape character is '^]'. adfasdfasdfasdf Connection closed by foreign host. ``` ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@Meppo commented on GitHub (Jul 16, 2025):

is network issue , connect success on another host...

2025-07-16 03:32:41.011 [I] [sub/root.go:149] start frpc service for config file [frpc-first.toml]
2025-07-16 03:32:41.011 [I] [client/service.go:314] try to connect to server...
2025-07-16 03:32:41.639 [I] [client/service.go:306] [e8c1604c306abc7e] login to server success, get run id [e8c1604c306abc7e]
2025-07-16 03:32:41.639 [I] [proxy/proxy_manager.go:177] [e8c1604c306abc7e] proxy added: [ssh]
2025-07-16 03:32:41.843 [I] [client/control.go:172] [e8c1604c306abc7e] [ssh] start proxy success
<!-- gh-comment-id:3076601670 --> @Meppo commented on GitHub (Jul 16, 2025): is network issue , connect success on another host... ```bash 2025-07-16 03:32:41.011 [I] [sub/root.go:149] start frpc service for config file [frpc-first.toml] 2025-07-16 03:32:41.011 [I] [client/service.go:314] try to connect to server... 2025-07-16 03:32:41.639 [I] [client/service.go:306] [e8c1604c306abc7e] login to server success, get run id [e8c1604c306abc7e] 2025-07-16 03:32:41.639 [I] [proxy/proxy_manager.go:177] [e8c1604c306abc7e] proxy added: [ssh] 2025-07-16 03:32:41.843 [I] [client/control.go:172] [e8c1604c306abc7e] [ssh] start proxy success ```
Author
Owner

@nano-papa commented on GitHub (Sep 15, 2025):

What network problem? I have the same problem. I am using MacOS.

<!-- gh-comment-id:3293036886 --> @nano-papa commented on GitHub (Sep 15, 2025): What network problem? I have the same problem. I am using MacOS.
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/frp#3852
No description provided.