mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #372] Barrier can't connect using hostname, only ip #295
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#295
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 @evantandersen on GitHub (Jul 25, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/372
Operating Systems
Server: Ubuntu, 4.18.0-26-generic
Client: Mint, 4.15.0-20-generic
Barrier Version
2.3.0 Flatpak
Steps to reproduce bug
[2019-07-25T01:57:34] WARNING: failed to connect to server: unknown error for: evan-woodtower:24800Netcat seems to be able to connect just fine:
Other info
I'm using barrier to control a VM setup where the host and guest each get their own screen. Windows has no problem connecting to the host using it's hostname, but when I switch the VM to linux mint it won't connect. I first had to enable windows hostname resolution on mint, but that seems to be working just fine for other programs (netcat, ping, accessing network shares, etc). So I'm not sure what's going on, or how to debug further. My host machine's ip seems to change multiple times per day right now, and it's annoying to have to used qemu sendkey to update the ip in barrier.
@noisyshape commented on GitHub (Jul 25, 2019):
That error comes from getaddrinfo, which netcat also uses for hostname resolution. I suspect that Barrier isn't using the same network/nameserver configuration, possibly because of Flatpak.
As a workaround, if you control the network you could change the DHCP lease times or assign a static address to the VM host.
@enricodias commented on GitHub (Jul 30, 2019):
I have the same issue if I leave my computers locked for the night (not VMs). Both machines stay connected and with the same IP. Even if I put them to sleep, the lease time is long enough to they keep the same IPs.
Barrier could save the last known ip and try to use it if the hostname resolution fail.
@evantandersen commented on GitHub (Aug 5, 2019):
98% sure this is actually a flatpak issue.
https://github.com/flatpak/flatpak/issues/348