mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1202] [W] [service.go:82] login to server failed: dial tcp xxx.xxx.xxx.xxx:7000: connect: connection timed out #944
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#944
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jingangdidi on GitHub (Apr 17, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1202
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
frp_0.26.0
What operating system and processor architecture are you using (
go env)?Centos7
amd64
Configures you used:
Server:
[common]
bind_port = 7000
client:
[common]
server_addr = XXX.XXX.XXX.XXX
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
Steps to reproduce the issue:
1.内网服务器(Centos7):./frps -c ./frps.ini,显示:
[I] [service.go:136] frps tcp listen on 0.0.0.0:7000
[I] [root.go:204] Start frps success
2.client端: XXX.XXX.XXX.XXX改为内网IP,./frpc -c ./frpc.ini,显示:
[W] [service.go:82] login to server failed: dial tcp XXX.XXX.XXX.XXX:7000: connect: connection timed out
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
@xiuluo211314 commented on GitHub (Apr 17, 2019):
如果能保证端口通,其他网络没问题的话,查看是不是阿里云服务器(如果你是)的安全组规则有没有加入7000端口,这个问题坑了好久!
@jingangdidi commented on GitHub (Apr 17, 2019):
这个问题困扰好久,一直没解决,服务器在公司(不是云服务器),22、7000、6000端口已全开。是服务端的问题?
@uu-xixi commented on GitHub (May 5, 2019):
防火墙关闭试一下? systemctl stop firewalld.service
@Bryce1010 commented on GitHub (Dec 11, 2019):
阿里云服务器建议添加对应的端口的防火墙管理里面,好坑啊。
@DayoWong0 commented on GitHub (Jan 12, 2020):
今天遇到这个问题 你说的这个方法有效 linux系统有防火墙 阿里云又带一层防火墙 ..多谢啦
@heqiaomu commented on GitHub (Feb 27, 2023):
我这边遇到这个问题主要是在使用 docker 部署客户端的时候出现,我现在是一个服务端,会存在多个客户端进行连接,为了方便,我会在每个服务内都使用一个frpc的客户端来进行透传。但是这几天一直出现这个问题:
[W] [service.go:134] login to server failed: dial tcp ip:7011: i/o timeout, 当前的端口是开放了的,使用二进制的 frpc 客户端没有问题,使用 容器化就存在问题。这个是应该怎么排查呢?frpc -v 0.47.0