[GH-ISSUE #3584] This is a command line tool. You need to open cmd.exe and run it from there. #2857

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

Originally created by @dellshan on GitHub (Aug 23, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3584

Bug Description

This is a command line tool.

You need to open cmd.exe and run it from there.

frpc Version

This is a command line tool. You need to open cmd.exe and run it from there.

frps Version

This is a command line tool. You need to open cmd.exe and run it from there.

System Architecture

This is a command line tool. You need to open cmd.exe and run it from there.

Configurations

This is a command line tool.

You need to open cmd.exe and run it from there.

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 @dellshan on GitHub (Aug 23, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3584 ### Bug Description This is a command line tool. You need to open cmd.exe and run it from there. ### frpc Version This is a command line tool. You need to open cmd.exe and run it from there. ### frps Version This is a command line tool. You need to open cmd.exe and run it from there. ### System Architecture This is a command line tool. You need to open cmd.exe and run it from there. ### Configurations This is a command line tool. You need to open cmd.exe and run it from there. ### 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

@vithurshanselvarajah commented on GitHub (Aug 30, 2023):

There is literally no information to go off of here.

If you are trying to run frp on a windows machine, server or normal client it needs to be run headless. Theres no gui interface.

You can launch it by opening command prompt or powershell. Navigate to the directory where frp resides and type ./frpc.exe or ./frps.exe depending on what you are using. You will also need to configure the config file so the launch parameters would have -c whatevernotconfig.ini etc

<!-- gh-comment-id:1699497445 --> @vithurshanselvarajah commented on GitHub (Aug 30, 2023): There is literally no information to go off of here. If you are trying to run frp on a windows machine, server or normal client it needs to be run headless. Theres no gui interface. You can launch it by opening command prompt or powershell. Navigate to the directory where frp resides and type ./frpc.exe or ./frps.exe depending on what you are using. You will also need to configure the config file so the launch parameters would have -c whatevernotconfig.ini etc
Author
Owner

@lss4 commented on GitHub (Sep 22, 2023):

This is not really a bug but certainly not friendly for especially Windows -- as even shortcuts configured with necessary arguments would not work because of this. I've run into this issue many times before.

The correct way to run frp in Windows is to create a bat/cmd file with the necessary arguments, then create a shortcut pointing to the bat/cmd with correct working directory, instead of the frp executable itself.

At least as of Windows 10 there's no option for shortcuts to make it "run in a terminal" like some Linux DEs.

<!-- gh-comment-id:1730788219 --> @lss4 commented on GitHub (Sep 22, 2023): This is not really a bug but certainly not friendly for especially Windows -- as even shortcuts configured with necessary arguments would not work because of this. I've run into this issue many times before. The correct way to run frp in Windows is to create a bat/cmd file with the necessary arguments, then create a shortcut pointing to the bat/cmd with correct working directory, instead of the frp executable itself. At least as of Windows 10 there's no option for shortcuts to make it "run in a terminal" like some Linux DEs.
Author
Owner

@vithurshanselvarajah commented on GitHub (Sep 22, 2023):

If really needed. Someone could wrap frp.exe with another exe with the launch parameters preconfigured.

<!-- gh-comment-id:1731915423 --> @vithurshanselvarajah commented on GitHub (Sep 22, 2023): If really needed. Someone could wrap frp.exe with another exe with the launch parameters preconfigured.
Author
Owner

@fimmspin commented on GitHub (Sep 26, 2023):

You can set the shortcut to point to cmd.exe and execute the command:
cmd.exe /c "C:\frp-folder\frpc.exe -c frpc.ini"

<!-- gh-comment-id:1735490305 --> @fimmspin commented on GitHub (Sep 26, 2023): You can set the shortcut to point to cmd.exe and execute the command: cmd.exe /c "C:\frp-folder\frpc.exe -c frpc.ini"
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#2857
No description provided.