[GH-ISSUE #2515] 是否支持多个客户端共用一个服务端端口配置 #1996

Closed
opened 2026-05-05 13:17:28 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @danileyang on GitHub (Aug 6, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2515

场景需求描述:
已在阿里云ECS上搭建frps集群,目前有多客户端(假设有10000+),按照文档给出的frpc.ini配置:
每个client的配置如下:
[common]
server_addr = serverIpHere
server_port = serverPortHere

[spynote]
type = tcp
local_ip = 127.0.0.1
local_port = 8080
remote_port = remotePort1 (当客户端非常多的时候,这个服务端的端口是不够用的)
并且好像并不能配置成和其它客户端相同的remote_port端口

请问这个如何解决?

Originally created by @danileyang on GitHub (Aug 6, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2515 场景需求描述: 已在阿里云ECS上搭建frps集群,目前有多客户端(假设有10000+),按照文档给出的frpc.ini配置: 每个client的配置如下: [common] server_addr = serverIpHere server_port = serverPortHere [spynote] type = tcp local_ip = 127.0.0.1 local_port = 8080 remote_port = remotePort1 (当客户端非常多的时候,这个服务端的端口是不够用的) 并且好像并不能配置成和其它客户端相同的remote_port端口 请问这个如何解决?
gitea-mirror 2026-05-05 13:17:28 -06:00
Author
Owner

@fatedier commented on GitHub (Aug 6, 2021):

你想如何解决?

<!-- gh-comment-id:893971830 --> @fatedier commented on GitHub (Aug 6, 2021): 你想如何解决?
Author
Owner

@IndustrialCommunication commented on GitHub (Aug 11, 2021):

tcp的端口还真解决不了,因为共用一个端口时没有一个可以区分的标志,http端口能共用,是因为可以用域名做为区分标志,不然不知道哪个转哪个。

<!-- gh-comment-id:896540080 --> @IndustrialCommunication commented on GitHub (Aug 11, 2021): tcp的端口还真解决不了,因为共用一个端口时没有一个可以区分的标志,http端口能共用,是因为可以用域名做为区分标志,不然不知道哪个转哪个。
Author
Owner

@xilu0 commented on GitHub (Aug 12, 2021):

you can use multiple ip address.

<!-- gh-comment-id:897506683 --> @xilu0 commented on GitHub (Aug 12, 2021): you can use multiple ip address.
Author
Owner

@github-actions[bot] commented on GitHub (Sep 12, 2021):

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

<!-- gh-comment-id:917512145 --> @github-actions[bot] commented on GitHub (Sep 12, 2021): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d 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#1996
No description provided.