mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3889] frps 无法监听ipv4地址 #3083
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#3083
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 @iccfish on GitHub (Dec 23, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3889
Bug Description
默认情况下服务端绑定IP地址为0.0.0.0,但是在这种情况下frps仅监听了IPV6地址,IPV4地址并不监听,导致使用IPV4地址无法连接(这里不考虑使用6to4方式进行访问)。

已确认

net.ipv6.bindv6only为0frpc Version
0.53.2
frps Version
0.53.2
System Architecture
linux/amd64
Configurations
Logs
No response
Steps to reproduce
None.
Affected area
@jdkcn commented on GitHub (Apr 29, 2024):
请问这个问题是怎么解决的,谢谢。我现在也是这个情况。谢谢!
@Silbernitrat commented on GitHub (Jun 22, 2024):
我也遇到这个问题了
@nanzehua commented on GitHub (Jul 18, 2024):
这个你是怎么解决的?
@yurenchen000 commented on GitHub (Sep 11, 2024):
0. golang net.Listen('tcp', addr)
cause golang default bind all
https://github.com/golang/go/issues/48723
https://pkg.go.dev/net#Listen
1. test patch 'tcp4'
server bind
fe4ca1b/server/service.go (L224)demo patch (only fix BindAddr, webServer and ProxyBindAddr, for test purpose)
//if the addr is ipv4, only bind tcp4
//it didn't fix all net.Listen()
maybe add some option (ex. addr_tcpv4_only)
or host schema (ex. tcp4:8.8.8.8)
for v4 or v6 will better
@crystal0913 commented on GitHub (Jan 6, 2025):
try this:
@YufengSoft commented on GitHub (May 16, 2025):
2025年了,frp_0.62.1_linux_amd64 版本依旧出现这个问题