[GH-ISSUE #4790] 多个端口不生效 #3783

Closed
opened 2026-05-05 14:25:24 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @wangguichao on GitHub (May 7, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4790

Bug Description

我在本地想映射两个端口到服务器上,但是只能生效一个端口。
本地frpc的toml文件如下
server_addr = "********"
server_port = 7000

proxies
name = "fastgpt"
type = "tcp"
local_ip = "host.docker.internal"
local_port = 3000
remote_port = 4000

proxies
name = "openwebui"
type = "tcp"
local_ip = "host.docker.internal"
local_port = 3008
remote_port = 3008

最终在服务器端只能生效一个 3008端口

frpc Version

0.61

frps Version

0.61

System Architecture

服务器是linux/amd64,本地主机是 windows/amd64

Configurations

尝试了很多次方法都失败了

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @wangguichao on GitHub (May 7, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4790 ### Bug Description 我在本地想映射两个端口到服务器上,但是只能生效一个端口。 本地frpc的toml文件如下 server_addr = "********" server_port = 7000 [[proxies]] name = "fastgpt" type = "tcp" local_ip = "host.docker.internal" local_port = 3000 remote_port = 4000 [[proxies]] name = "openwebui" type = "tcp" local_ip = "host.docker.internal" local_port = 3008 remote_port = 3008 最终在服务器端只能生效一个 3008端口 ### frpc Version 0.61 ### frps Version 0.61 ### System Architecture 服务器是linux/amd64,本地主机是 windows/amd64 ### Configurations 尝试了很多次方法都失败了 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@superzjg commented on GitHub (May 9, 2025):

配置文件格式都是错的,先看清楚:
https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml

<!-- gh-comment-id:2864856469 --> @superzjg commented on GitHub (May 9, 2025): 配置文件格式都是错的,先看清楚: https://github.com/fatedier/frp/blob/dev/conf/frpc_full_example.toml
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#3783
No description provided.