Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 11 tasks
Curtaingit opened this issue Dec 31, 2024 · 4 comments

Comments

@Curtaingit
Copy link

Curtaingit commented Dec 31, 2024

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
@UR-l
Copy link

UR-l commented Dec 31, 2024

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

@Curtaingit
Copy link
Author

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

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

@Curtaingit
Copy link
Author

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

@xqzr
Copy link

xqzr commented Jan 1, 2025

可能需要多个 serverAddr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants