[GH-ISSUE #4208] frpc 客户端自定义端口不起作用 #3312

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

Originally created by @ghost on GitHub (May 9, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4208

Bug Description

直接看配置文件。

client
  /etc/systemd/system ❯ cat frpc.service                                                                                                                                                                      with root@pve at  15:40:16
[Unit]
# 服务名称,可自定义
Description = frp server
After = network.target syslog.target
Wants = network.target

[Service]
Type = simple
# 启动frps的命令,需修改为您的frps的安装路径
ExecStart = /usr/bin/frpc -c /etc/frp/frpc.toml

[Install]
WantedBy = multi-user.target
[common]
serverAddr = "123.129.27.9"
serverPort = 7100
auth.method = "token"
auth.token = "pMudjkashduqwnjk"
log_file = ./frpc.log
log_level = info
log_max_days = 30

end
WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead!
login to the server failed: dial tcp 0.0.0.0:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted

frpc Version

0.58.0

frps Version

0.58.0

System Architecture

linux/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 @ghost on GitHub (May 9, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4208 ### Bug Description 直接看配置文件。 ```shell client   /etc/systemd/system ❯ cat frpc.service with root@pve at  15:40:16 [Unit] # 服务名称,可自定义 Description = frp server After = network.target syslog.target Wants = network.target [Service] Type = simple # 启动frps的命令,需修改为您的frps的安装路径 ExecStart = /usr/bin/frpc -c /etc/frp/frpc.toml [Install] WantedBy = multi-user.target ``` ```shell [common] serverAddr = "123.129.27.9" serverPort = 7100 auth.method = "token" auth.token = "pMudjkashduqwnjk" log_file = ./frpc.log log_level = info log_max_days = 30 ``` ```shell end WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead! login to the server failed: dial tcp 0.0.0.0:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted ``` ### frpc Version 0.58.0 ### frps Version 0.58.0 ### System Architecture linux/amd64 ### Configurations 客户端无法使用自定义端口 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [X] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@ghost commented on GitHub (May 9, 2024):

按照新版重写一遍就好了。

<!-- gh-comment-id:2102391016 --> @ghost commented on GitHub (May 9, 2024): 按照新版重写一遍就好了。
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#3312
No description provided.