[GH-ISSUE #1332] couldn't set server host name on windows #1048

Open
opened 2026-05-05 07:24:32 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @semio on GitHub (Oct 20, 2021).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1332

What happened?

Following the FAQ in README, I added the serverhostname option to the configure file:

section: options
    serverhostname=<AAA.BBB.CCC.DDD>

But this doesn't work on Windows 10, the log shows:

[2021-10-20T10:18:56] ERROR: cannot read configuration "C:/Users/semio/home/config/barrier.conf.sgc": read error: line 39: unknown argument "serverhostname"

I also tried serverHostname and serverHostName, but they don't work neither.

Version

v2.3.3

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

github release

What OSes are you seeing the problem on? (Check all that apply)

Windows

What OS versions are you using?

Windows 10

Relevant log output

No response

Any other information

No response

Originally created by @semio on GitHub (Oct 20, 2021). Original GitHub issue: https://github.com/debauchee/barrier/issues/1332 ### What happened? Following the FAQ in README, I added the serverhostname option to the configure file: ``` section: options serverhostname=<AAA.BBB.CCC.DDD> ``` But this doesn't work on Windows 10, the log shows: ``` [2021-10-20T10:18:56] ERROR: cannot read configuration "C:/Users/semio/home/config/barrier.conf.sgc": read error: line 39: unknown argument "serverhostname" ``` I also tried `serverHostname` and `serverHostName`, but they don't work neither. ### Version v2.3.3 ### Git commit hash (if applicable) _No response_ ### If applicable, where did you install Barrier from? github release ### What OSes are you seeing the problem on? (Check all that apply) Windows ### What OS versions are you using? Windows 10 ### Relevant log output _No response_ ### Any other information _No response_
gitea-mirror added the
bug
label 2026-05-05 07:24:32 -06:00
Author
Owner

@trevormerritt commented on GitHub (Dec 21, 2021):

I too have the same issue with Linux Mint.

When looking through the source, the value
serverHostname
is set at line 291 of /src/gui/src/MainWindow.cpp
but there is no place that the value is read back as far as I can tell. I am not knowledgeable enough to actually fix it, but that is why I think its not working. I haven't found a work-around yet.

<!-- gh-comment-id:998784355 --> @trevormerritt commented on GitHub (Dec 21, 2021): I too have the same issue with Linux Mint. When looking through the source, the value serverHostname is set at line 291 of /src/gui/src/MainWindow.cpp but there is no place that the value is read back as far as I can tell. I am not knowledgeable enough to actually fix it, but that is why I think its not working. I haven't found a work-around yet.
Author
Owner

@trevormerritt commented on GitHub (Dec 21, 2021):

barriers -c ~/.barrier.conf -f --no-tray --debug DEBUG --name pc101 --enable-crypto --address 0.0.0.0:24800

*** WORKAROUND ***
By using this commandline, I start the barriers process in a tmux session and leave it alone. Until there is a real fix, this does it for me.

<!-- gh-comment-id:998792858 --> @trevormerritt commented on GitHub (Dec 21, 2021): barriers -c ~/.barrier.conf -f --no-tray --debug DEBUG --name pc101 --enable-crypto --address 0.0.0.0:24800 *** WORKAROUND *** By using this commandline, I start the barriers process in a tmux session and leave it alone. Until there is a *real* fix, this does it for me.
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/barrier#1048
No description provided.