[GH-ISSUE #2657] frps启动后只监听了tcp6端口,导致无法启动启动frpc #2118

Closed
opened 2026-05-05 13:21:38 -06:00 by gitea-mirror · 2 comments
Owner

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

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
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 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [X] Others
gitea-mirror 2026-05-05 13:21:38 -06:00
Author
Owner

@xqzr commented on GitHub (Nov 14, 2021):

即使只监听了 tcp6,但 IPv4 是可以连接的,检查防火墙

<!-- gh-comment-id:968287238 --> @xqzr commented on GitHub (Nov 14, 2021): 即使只监听了 tcp6,但 IPv4 是可以连接的,检查防火墙
Author
Owner

@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.

<!-- gh-comment-id:994173321 --> @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.
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#2118
No description provided.