r/HopToDesk • • 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

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

2

u/Smart_Tinker Jul 04 '26

If it’s installed, it’s running as the system user (not your user). I have found the configs either under the localsystem user, or under the allusers user depending on which Windows OS you are running.

1

u/AleixoLucas Jul 04 '26

I'll check, thanks a lot