[GH-ISSUE #4614] [Feature Request] 想通过frp实现udp双向通信 但是配置一直没成功,能否帮忙看下原因 #3640

Closed
opened 2026-05-05 14:20:17 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @Curtaingit on GitHub (Dec 31, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4614

Describe the feature request

frp版本 V0.60.0

服务器配置 frps.toml
bindPort = 7111

客户端1配置 frpc.toml
serverAddr = "60.191.121.45"
serverPort = 7111

proxies
name = "client1"
type = "udp"
localIP = "127.0.0.1"
localPort = 6678
remotePort = 6678

客户端2配置 frpc.toml
serverAddr = "60.191.121.45"
serverPort = 7111

proxies
name = "client1"
type = "udp"
localIP = "127.0.0.1"
localPort = 6677
remotePort = 6677

客户端应用程序逻辑

客户端1 接收端口为6678 发送数据到60.191.121.45的6677
客户端2 接收端口为6677 发送数据到60.191.121.45的6678

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Curtaingit on GitHub (Dec 31, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4614 ### Describe the feature request frp版本 V0.60.0 服务器配置 frps.toml bindPort = 7111 客户端1配置 frpc.toml serverAddr = "60.191.121.45" serverPort = 7111 [[proxies]] name = "client1" type = "udp" localIP = "127.0.0.1" localPort = 6678 remotePort = 6678 客户端2配置 frpc.toml serverAddr = "60.191.121.45" serverPort = 7111 [[proxies]] name = "client1" type = "udp" localIP = "127.0.0.1" localPort = 6677 remotePort = 6677 客户端应用程序逻辑 客户端1 接收端口为6678 发送数据到60.191.121.45的6677 客户端2 接收端口为6677 发送数据到60.191.121.45的6678 ### Describe alternatives you've considered _No response_ ### 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 14:20:17 -06:00
Author
Owner

@UR-l commented on GitHub (Dec 31, 2024):

客户端1接收端口6677的消息,客户端2往60.191.121.45的6677端口发消息

<!-- gh-comment-id:2566216160 --> @UR-l commented on GitHub (Dec 31, 2024): 客户端1接收端口6677的消息,客户端2往60.191.121.45的6677端口发消息
Author
Owner

@Curtaingit commented on GitHub (Dec 31, 2024):

客户端1接收端口6677的消息,客户端2往60.191.121.45的6677端口发消息

不行 设备端程序限制 只支持 6677接收 然后回数据到6678

<!-- gh-comment-id:2566246221 --> @Curtaingit commented on GitHub (Dec 31, 2024): > 客户端1接收端口6677的消息,客户端2往60.191.121.45的6677端口发消息 不行 设备端程序限制 只支持 6677接收 然后回数据到6678
Author
Owner

@Curtaingit commented on GitHub (Dec 31, 2024):

现在 客户端1发送没问题 客户端2可以收到,但是客户端1没法接收客户端2的发出的数据

<!-- gh-comment-id:2566247043 --> @Curtaingit commented on GitHub (Dec 31, 2024): 现在 客户端1发送没问题 客户端2可以收到,但是客户端1没法接收客户端2的发出的数据
Author
Owner

@xqzr commented on GitHub (Jan 1, 2025):

可能需要多个 serverAddr

<!-- gh-comment-id:2567108000 --> @xqzr commented on GitHub (Jan 1, 2025): 可能需要多个 `serverAddr`
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2025):

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

<!-- gh-comment-id:2594212388 --> @github-actions[bot] commented on GitHub (Jan 16, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d 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#3640
No description provided.