mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3584] This is a command line tool. You need to open cmd.exe and run it from there. #2857
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2857
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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
@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.
@vithurshanselvarajah commented on GitHub (Sep 22, 2023):
If really needed. Someone could wrap frp.exe with another exe with the launch parameters preconfigured.
@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"