mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2657] frps启动后只监听了tcp6端口,导致无法启动启动frpc #2118
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#2118
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 @Hassanggg on GitHub (Nov 14, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2657
Bug Description
./frps -c ./frps.ini &
[1] 2493
2021/11/14 16:08:56 [I] [service.go:190] frps tcp listen on 0.0.0.0:7000
2021/11/14 16:08:56 [I] [root.go:215] start frps success
netstat -antlp |grep 7000
tcp6 0 0 :::7000 :::* LISTEN 2493/./frps
frps启动后只监听了tcp6端口,导致起frpc的时候无法连接公网的7000端口,frpc启动失败
frpc Version
0.34.3
frps Version
0.34.3
System Architecture
linux/amd64
Configurations
cat frpc.ini
[common]
server_addr = X.X.X.X
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
Logs
./frpc -c ./frpc.ini
2021/11/14 16:11:12 [W] [service.go:102] login to server failed: dial tcp X.X.X.X:7000: connect: connection refused
dial tcp 218.89.224.37:7000: connect: connection refused
Steps to reproduce
...
Affected area
@xqzr commented on GitHub (Nov 14, 2021):
即使只监听了 tcp6,但 IPv4 是可以连接的,检查防火墙
@github-actions[bot] commented on GitHub (Dec 15, 2021):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.