mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #546] Barrier can resolve via numeric IP but not Avahi mDNS #426
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#426
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 @detly on GitHub (Jan 24, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/546
The client connects to the server just fine when using the numeric IP address. It does not connect when given the Avahi mDNS server address.
I can live with using numeric IP addresses, but it's nice not to have to. Plus it seems odd that only one piece of software on the client machine can't resolve using Avahi.
Operating Systems
Server: Ubuntu 19.10 (eoan)
Client: Ubuntu 18.04.3 LTS (bionic)
Server is a Lenovo laptop, connected via wifi. Hostname and screen name is "aang".
Client is a Mac Mini 2016, connected via ethernet. Hostname and screen name is "fox".
Barrier Version
Server: installed via apt
2.3.1+dfsg-1ubuntu1Client: installed via Snap:
Steps to reproduce bug
Server:
192.168.1.231, confirmed viaip addr show.Client:
192.168.1.231.It works!
Now try:
Client:
aang.local.It does not connect. See log below.
Other info
Avahi works fine for everything else. From client:
Log on server
Log for successful connection (via IP address):
Log for unsuccessful connection (via Avahi):
(Nothing after this.)
Log on client
Successful/IP address:
Unsuccessful/Avahi:
@detly commented on GitHub (Jan 25, 2020):
Could be because Snap doesn't use the system resolve order(!!).
@detly commented on GitHub (Feb 3, 2020):
Workaround as per #12 on bug #1838038: on the client, install (via
apt) thenscdpackage and restartsnapd:@the-wes commented on GitHub (Mar 3, 2020):
@detly can you confirm that installing nscd worked?
I am not sure Barrier can do anything about this as the root cause is something to do with Snap's name resolution policy.
@detly commented on GitHub (Mar 4, 2020):
@the-wes It did! And I agree re. it being a Snap issue. I'll leave it up to you whether you want to document it as a necessary workaround in the installation instructions or not (I'd consider it since Avahi is such a common tool for resolution on local networks).
@github-actions[bot] commented on GitHub (Sep 30, 2020):
This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.