mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #246] Scenario "mobile client": Support for multiple servers per client? #197
Labels
No labels
HiDPI
bounty
bsd/freebsd
bsd/openbsd
bug
bug
build-infra
cantfix
critical
doc
duplicate
enhancement
fix-available
from git
from release
good first issue
help wanted
installer/package
invalid
linux
macOS
meta
needs testing
pull-request
query
question
regression
regression
v2.4.0
windows
wontfix
work-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/barrier#197
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 @kakra on GitHub (Feb 4, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/246
I installed a Barrier client 2.1.2 on a Windows laptop. This machine is used at different locations as a companion machine to different stationary PCs (thus in different network locations).
I'm currently using two Barrier servers: One Gentoo Linux machine (2.1.2) at work, and another Gentoo Linux machine (also 2.1.2) at home.
I didn't currently find a way to reliably connect the client with multiple servers (so it would pick the one that's available). Instead, I need to open the client config and change the server IP to connect to.
Is this scenario a supported use-case? The auto-config mode doesn't seem to work: I'm forced to enter an IP / hostname in the client configuration although the field will be disabled when auto-config is enabled. It would help if I could just give it multiple comma-separated hostnames in the server input field.
@dnunes commented on GitHub (Jan 25, 2021):
Any updates on this? I run a dual boot setup (Ubuntu 20.04 + Windows 10) with my server machine and have a companion (Windows 10) that have no keyboard/mouse attached to it, used for specific tasks. It's quite inconvenient to get a mouse to configure the second machine every time I switch OS. I would like to connect both OSes to the companion machine, but couldn't quite figure out if this is supported or not.
@sebbean commented on GitHub (Sep 10, 2021):
SHOULD WE BUILD IT? @mincedmit
@Gustavobtfelix commented on GitHub (Sep 24, 2021):
hope you guys figure it out. I'm also trying to use multiple servers to client associations. to no vail until now. What i'm planning to do is using Team Viewer or VNC to access a server so that i can use it from various places.
@maldex commented on GitHub (Jan 8, 2023):
I found a (windows) way that works for me: probing servers!
The Windows Task Scheduler can be triggered upon 'On Workstation Unlock': run a discovery-script whenever i revive my current windows session.
When changing my location beween Home, Work and Lab, i usually put my Laptop into sleep/hibernate/lid-Lock, after which i need to unlock windows again: thats when i want to find my local barrier-servers
Allthough this takes some seconds each time, it allows me to kvm my laptop on various desks
create serverlist
enter your servers line by line
disable barrierd service
barrierd.exe as windows service is sleek for 'static' setups (where the client stays in the same network with the same server). With this proposed solution, we dynamically use barrierc.exe to connect to whatever server.
create onUnlock Scheduled Task
create a scheduled task to run
StateChangeType 8 is TASK_SESSION_STATE_CHANGE_TYPE.TASK_SESSION_UNLOCK (taskschd.h) thx
BarrierClientFindLocalServer.ps1