[GH-ISSUE #3069] Frps can't Listening ipv4 #2458

Closed
opened 2026-05-05 13:34:52 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @fengziyun on GitHub (Aug 22, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3069

Bug Description

[root@localhost frps]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)
[root@localhost frps]# uname -a
Linux localhost.localdomain 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

无法监听ipv4

[root@localhost frps]# netstat  -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      786/rpcbind         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1126/sshd           
tcp6       0      0 :::7000                :::*                    LISTEN      73367/./frps        
tcp6       0      0 :::111                  :::*                    LISTEN      786/rpcbind

试过很多版本

frpc Version

0.44.0

frps Version

0.44.0

System Architecture

Linux localhost.localdomain 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Configurations

[common]

bind_port = 7000
bind_addr = 0.0.0.0

Logs

No response

Steps to reproduce

  1. ./frps -c frps.ini
  2. netstat -tnlp

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @fengziyun on GitHub (Aug 22, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3069 ### Bug Description ``` shell [root@localhost frps]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [root@localhost frps]# uname -a Linux localhost.localdomain 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ``` 无法监听ipv4 ``` shell [root@localhost frps]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 786/rpcbind tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1126/sshd tcp6 0 0 :::7000 :::* LISTEN 73367/./frps tcp6 0 0 :::111 :::* LISTEN 786/rpcbind ``` 试过很多版本 ### frpc Version 0.44.0 ### frps Version 0.44.0 ### System Architecture Linux localhost.localdomain 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ### Configurations [common] bind_port = 7000 bind_addr = 0.0.0.0 ### Logs _No response_ ### Steps to reproduce 1. ./frps -c frps.ini 2. netstat -tnlp ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:34:53 -06:00
Author
Owner

@fengziyun commented on GitHub (Aug 22, 2022):

是私人服务器,不是云服务器

<!-- gh-comment-id:1221820390 --> @fengziyun commented on GitHub (Aug 22, 2022): 是私人服务器,不是云服务器
Author
Owner

@Becods commented on GitHub (Aug 22, 2022):

看上去在监听ipv6实际上有可能是双栈都在监听

还是不行的话自行谷歌怎么关掉ipv6

<!-- gh-comment-id:1222414702 --> @Becods commented on GitHub (Aug 22, 2022): 看上去在监听ipv6实际上有可能是双栈都在监听 还是不行的话自行谷歌怎么关掉ipv6
Author
Owner

@ysmox commented on GitHub (Sep 14, 2022):

这个问题已经问过了,一句话说清楚就是ipv6可以同时监听ipv6和ipv4。
https://github.com/fatedier/frp/issues/838

<!-- gh-comment-id:1247185236 --> @ysmox commented on GitHub (Sep 14, 2022): 这个问题已经问过了,一句话说清楚就是ipv6可以同时监听ipv6和ipv4。 https://github.com/fatedier/frp/issues/838
Author
Owner

@github-actions[bot] commented on GitHub (Oct 15, 2022):

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

<!-- gh-comment-id:1279614037 --> @github-actions[bot] commented on GitHub (Oct 15, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@ysmox commented on GitHub (Oct 15, 2022):

您发给我的信件已经收到。Your letter to me has been received.

<!-- gh-comment-id:1279614109 --> @ysmox commented on GitHub (Oct 15, 2022): 您发给我的信件已经收到。Your letter to me has been received.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 16, 2022):

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

<!-- gh-comment-id:1316085728 --> @github-actions[bot] commented on GitHub (Nov 16, 2022): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@ysmox commented on GitHub (Nov 16, 2022):

您发给我的信件已经收到。Your letter to me has been received.

<!-- gh-comment-id:1316086193 --> @ysmox commented on GitHub (Nov 16, 2022): 您发给我的信件已经收到。Your letter to me has been received.
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#2458
No description provided.