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
80.97k stars 12.78k forks source link

login to server failed: dial tcp {IP:PORT}: i/o timeout #2843

Closed rootGH closed 2 years ago

rootGH commented 2 years ago

Bug Description

VPS IP:PORT has been switched off already

frpc Version

0.40.0

frps Version

0.40.0

System Architecture

windows/amd64

Configurations

Client [common] server_addr = {IP} server_port = 7000

[RDP] type = tcp local_ip = 127.0.0.1 local_port = 3389 remote_port = 7001

Server [common] bind_port = 7000

Logs

D:\frp_0.40.0_windows_amd64>frpc.exe 2022/03/15 09:25:40 [W] [service.go:105] login to server failed: dial tcp {IP:PORT}: i/o timeout dial tcp {IP:PORT}: i/o timeout

Steps to reproduce

  1. ...

Affected area

Qpp0 commented 2 years ago

same here

Becods commented 2 years ago

post the log of frps, pls

rootGH commented 2 years ago

no logs, only two lines D:\frp_0.40.0_windows_amd64>frpc.exe 2022/03/15 09:25:40 [W] [service.go:105] login to server failed: dial tcp {IP:PORT}: i/o timeout dial tcp {IP:PORT}: i/o timeout

rootGH commented 2 years ago

post the log of frps, pls

no logs, only two lines D:\frp_0.40.0_windows_amd64>frpc.exe 2022/03/15 09:25:40 [W] [service.go:105] login to server failed: dial tcp {IP:PORT}: i/o timeout dial tcp {IP:PORT}: i/o timeout

Pil0tXia commented 2 years ago

me too here

Becods commented 2 years ago

Use tcping to test if the port is open properly

scmplie commented 2 years ago

Have you found a solution

Pil0tXia commented 2 years ago

solved, this problem mostly happens in cloud servers, the source port range should be *

scmplie commented 2 years ago

solved, this problem mostly happens in cloud servers, the source port range should be *

how to do it, buddy is it means that i need to open all the tcp+udp port

scmplie commented 2 years ago

solved, this problem mostly happens in cloud servers, the source port range should be *

我也搞好了,我用内网那个ping外网的IP发现ping不通,然后发现路由器的网络控制把我那个frp服务器给限时了,改了一下就好了。

fantasyEthan commented 2 years ago

I encountered the same problem. I use Aliyun ECS + computer in edu domain. I followed the instructions and set the firewalls of ecs. How did you solve these problems?

Waterkin commented 2 years ago

腾讯云 同样有这个问题 设置了防火墙也没有用。

ArthurWang0829 commented 2 years ago

请问下这个是怎么改?阿里云ping起来回报正常,是端口不对?

github-actions[bot] commented 2 years ago

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

CaesarHolland commented 1 year ago

My cloud server is Tencent cloud, I solved the problem by add a firewall rule (open port 7000 of tcp) on cloud server

liugeng518 commented 1 year ago

怎么解决的?

wshidaijingshen commented 1 year ago

怎么解决的?

我是客户端的 公网ip 地址写错了,好好检查下 I solved this by correcting the server_addr in frpc.ini . Then problems gone.

52Lau commented 1 year ago

image 如楼上所说 放开 *

Lucca-cherries commented 11 months ago

It turns out that the port 6000 and 7000 should both be opened (I referred to one guide with these two ports). In my case, this solves my problem.