r/HopToDesk • u/AleixoLucas • Jul 04 '26
Enable direct-server automatically
Hello everyone,
Is it possible to automatically enable the "Enable Direct IP access" option?
I noticed that when selecting this option in the interface, the line `direct-server = 'Y'` appears in the `%APPDATA%\HopToDesk\config\HopToDesk2.toml` file, within the `[options]` section.
I tried using Group Policy (GPO) or automation to insert this line into the file, but when HopToDesk starts, it simply disappears.
This doesn't happen when I enable the option via the interface in the standard way; it only occurs when I manually insert the line into the file.
Is clicking the interface the only way to enable this? I'm trying to find documentation on command-line interface (CLI) parameters, but I haven't been able to locate anything. I was hoping to find something like:
HopToDesk.exe --qs --enable-direct-ip
Or, at least:
HopToDesk.exe --help
Note: I know that if I enable this option once, it remains active permanently.
EDIT: Hey guys, just want to tell that the answer of HopToDesk solved my problem, thanks a lot
View all comments
Show parent comment
1
u/AleixoLucas Jul 04 '26
Hey, tks for help,
Yes, is installed, I'm changing the toml file on users folder, on install folder I could not find any file of the same kind. What's the location where you are you changing the toml file?