fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
85.34k stars 13.24k forks source link

connection write timeout #3107

Closed pxzhang94 closed 1 year ago

pxzhang94 commented 2 years ago

Bug Description

[W] [service.go:97] login to server failed: connection write timeout connection write timeout

frpc Version

0.29.1

frps Version

0.29.1

System Architecture

linux/amd64

Configurations

default

Logs

No response

Steps to reproduce

  1. ...

Affected area

Becods commented 2 years ago

Update your frp, and

CM6PHS7AGGJPN31Y2DI83MS

pxzhang94 commented 2 years ago

I already update my frp to version 0.44.0, and the only information in log file is "2022/09/23 22:32:07 [W] [service.go:128] login to server failed: connection write timeout", and the configuration of frpc.ini is " [common] tls_enable = true server_addr = XXX server_port = 7000 log_file = ./frpc.log [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = XXX"

Update your frp, and

CM6PHS7AGGJPN31Y2DI83MS

Becods commented 2 years ago

Paste your startup command.

pxzhang94 commented 2 years ago

Paste your startup command.

Do you mean this "./frpc -c ./frpc.ini"?

Becods commented 2 years ago

Check if your server port is open and can be connected properly.

Use tcping.

github-actions[bot] commented 1 year ago

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

yudonglin commented 1 year ago

Check if your server port is open and can be connected properly.

Use tcping.

Ok so @Becods 's suggestion makes me realize what is the problem here... make sure to go to "Security Group" on the server end and switch your 7000 port protocol type from "customize tcp" to "customize udp". This fix my problem.

kaifeiji commented 1 year ago

Try changing your bind_port in frps.ini and server_port in frpc.ini to another port number, like 6789. Works for me. A rough guess: GFW or your ISP monitored some "unusual" network traffic on this port, and then block or restrict the port.

wk989898 commented 1 year ago

Try to use kcp protocol

N-E-E commented 3 days ago

Try to use kcp protocol

correct. I fix the problem by using kcp protocol