mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1680] 转发UDP端口只监听ipv6不监听ipv4 #1330
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#1330
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 @Cathgao on GitHub (Mar 2, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1680
客户端配置:
type = udp
local_ip = 127.0.0.1
remote_port = 27015
local_port = 27015
服务器与客户端均没有开启ipv6

服务器端使用netstat -ano查看只有UDP6 :::27015没有UDP 0.0.0.0:27015
@QQ2017 commented on GitHub (Mar 15, 2020):
换一个端口试试呢?
@ouxlwhu commented on GitHub (Mar 16, 2020):
服务端也遇到这个问题,换过端口,都起作用
只能监听ipv6的,ipv4的没有,导致客户端连不上服务端
[root@linux_amd64]# netstat -nap | grep 56000
tcp6 0 0 :::56000 :::* LISTEN 18652/./frps
[root@linux_amd64]# cat frps.ini
[common]
bind_port = 56000
使用release中的v0.32.0和v0.21.0都是这样,其他版本没试过
在两种环境中试过:
1.
sonic@aster241:
$ uname -a16.04.1-Ubuntu SMP Tue Oct 1 14:01:08 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxLinux aster241 4.15.0-66-generic #75
2.
[root@linux_amd64]# uname -a
Linux iZm5e97u0ftapn9pk5ul65Z 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
@ouxlwhu commented on GitHub (Mar 16, 2020):
找到一个文档描述,认为这种情况不是问题
https://blog.csdn.net/weixin_30662011/article/details/95843673?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
@Cathgao commented on GitHub (Mar 16, 2020):
但我的事实上就是ipv4对这个端口没法连上
@fatedier commented on GitHub (Mar 29, 2020):
Maybe not a problem about frp, search google for more info.
@jackluo2012 commented on GitHub (Oct 20, 2020):
遇到了同样的问题,怎么解决的
@ZeddShi commented on GitHub (Jul 12, 2022):
一般是因为服务器端口没开,例如阿里云安全组没配