[GH-ISSUE #3676] The bind_port parameter in the toml configuration file is ignored #2927

Closed
opened 2026-05-05 13:53:34 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @alegz81 on GitHub (Oct 14, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3676

Bug Description

frps ignores the bind_port parameter in the configuration file.
The value 7000 is used
If you don't use the configuration file and run with the frps -p 700, then everything works correctly.
Also if it works fine use the file ini format

frpc Version

0.52.1

frps Version

0.52.1

System Architecture

linux/amd64 Ubuntu server 22.04 x64

Configurations

bind_addr = "0.0.0.0"
bind_port = 700

kcpBindPort = 700
quicBindPort = 701

transport.maxPoolCount = 20

webServer.addr = "x.x.x.x"
webServer.port = 7500
webServer.user = "xxxx"
webServer.password = "xxxxxx"
webServer.pprofEnable = false
enablePrometheus = false

log.to = "console"
log.level = "info"
log.maxDays = 3
log.disablePrintColor = false

auth.method = "token"
auth.token = "xxxxxxxxxxxx"

allowPorts = [
{ start = 500, end = 550 }
]

maxPortsPerClient = 0

Logs

[root.go:102] frps uses config file: frps.toml
[I] [service.go:200] frps tcp listen on 0.0.0.0:7000
[I] [service.go:210] frps kcp listen on udp 0.0.0.0:700
[I] [service.go:226] frps quic listen on quic 0.0.0.0:701
[I] [service.go:312] Dashboard listen on x.x.x.x:7500
[I] [root.go:111] frps started successfully

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 @alegz81 on GitHub (Oct 14, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3676 ### Bug Description frps ignores the bind_port parameter in the configuration file. The value 7000 is used If you don't use the configuration file and run with the frps -p 700, then everything works correctly. Also if it works fine use the file ini format ### frpc Version 0.52.1 ### frps Version 0.52.1 ### System Architecture linux/amd64 Ubuntu server 22.04 x64 ### Configurations bind_addr = "0.0.0.0" bind_port = 700 kcpBindPort = 700 quicBindPort = 701 transport.maxPoolCount = 20 webServer.addr = "x.x.x.x" webServer.port = 7500 webServer.user = "xxxx" webServer.password = "xxxxxx" webServer.pprofEnable = false enablePrometheus = false log.to = "console" log.level = "info" log.maxDays = 3 log.disablePrintColor = false auth.method = "token" auth.token = "xxxxxxxxxxxx" allowPorts = [ { start = 500, end = 550 } ] maxPortsPerClient = 0 ### Logs [root.go:102] frps uses config file: frps.toml [I] [service.go:200] frps tcp listen on 0.0.0.0:7000 [I] [service.go:210] frps kcp listen on udp 0.0.0.0:700 [I] [service.go:226] frps quic listen on quic 0.0.0.0:701 [I] [service.go:312] Dashboard listen on x.x.x.x:7500 [I] [root.go:111] frps started successfully ### 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

@duandaxei commented on GitHub (Oct 15, 2023):

bind_addr => bindAddr
bind_port => bindPort

<!-- gh-comment-id:1763250807 --> @duandaxei commented on GitHub (Oct 15, 2023): bind_addr => bindAddr bind_port => bindPort
Author
Owner

@alegz81 commented on GitHub (Oct 15, 2023):

My mistake. Didn't read the documentation carefully.

<!-- gh-comment-id:1763308544 --> @alegz81 commented on GitHub (Oct 15, 2023): My mistake. Didn't read the documentation carefully.
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#2927
No description provided.