mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #261] client uses wrong server ip address with auto config #210
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#210
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 @ArntWork on GitHub (Mar 1, 2019).
Original GitHub issue: https://github.com/debauchee/barrier/issues/261
Operating Systems
Server: Windows 7 SP1
Client: Mac OS 10.13.6
Barrier Version
Server (windows): 2.1.0-RELEASE-0b2dfd80
Client (Mac): 2.1.0-RELEASE-8b69f9fe
Steps to reproduce bug
Server has multiple network cards and IP addresses due to VM's (using VirtualBox) plus wired and wireless external networks. The 'real' ip addresses (on the external connection) are assigned via dhcp, so they are variable.
The client is set to auto config, and in the log I see tries to connect to an IP address that is internal to the server. This address is the one in bold on the server side, however there is no efficient way to make this the right one. I applied advice from https://symless.com/forums/topic/69-default-bold-ip-address-on-server-is-incorrect-one/ to set the right interface first in the network settings, that did not change the bolded address. I also tried to enter the correct ip address into the 'Interface' field (under networking) but also did not change the bolded address and did not fix the issue.
What is strange is that the only way for the client to get this incorrect IP address, is to have a successful connection with the server, because the address isn't known outside the server...
Other info
When did it occur: after I started the barrier interface on the server (Windows)
Workaround: if I turn off auto-config, but now I have to manually add the ip address on the client, and as said, dhcp, so it changes.
Ideas/suggestions:
Note that https://github.com/debauchee/barrier/issues/81 claims to hold code for a solution, but is closed and I see no way to reopen it. I'm not currently set up to build barrier, unfortunately.
@Cobalt6700 commented on GitHub (May 20, 2020):
I have this exact same issue, using Win 10.
I have a Hyper-V Virtual Ethernet Adapter and when enabled barrier defaults to this IP range.
Changing the client side to manual IP allows me to connect - auto connect doesn't work.
@enordstrand commented on GitHub (Nov 20, 2020):
Seems to be the same issue I am experiencing. The server has bolded another IP address than the one I want to use, so the Client tries to auto-connect incorrect IP.
@davidthewatson commented on GitHub (Nov 24, 2020):
I've got the same configuration: win10 pro barrier server and macos catalina barrier client. The client ignores the setting in the server IP field and instead goes to another IP address. In the barrier client log on macos, it outputs the following:
The correct IP address for the server is 192.168.50.75. The incorrect IP address is 92.242.140.21. This happens after stopping and restarting barrier. I've yet to find a way around it.
Barrier client on linux continues working with the same Win 10 Pro barrier server without issue.
@davidthewatson commented on GitHub (Nov 28, 2020):
Turns out that the wrong IP address that I noted above is barefruit in the UK:
https://whatismyipaddress.com/ip/92.242.140.21
Why this breaks the mac barrier client is a mystery. I'm going to take a look at the source and see if I can figure out what's going on because at this point, nothing has changed on my end, but whatever is going on completely broke my mac client in a windows server, linux client, mac client barrier setup that has been working flawlessly for months.
Not only that, but this error survives clearing barrier's library application state in the local Library directory, and in fact, survives dragging the barrier install to the trash and completely re-installing from the DMG. Whatever is going on, it's persistent.
I may try blocking barefruit at my router because I think the DNS is causing this to go awry and I believe that may be originating with Verizon but no evidence, just a hunch.
@davidthewatson commented on GitHub (Nov 28, 2020):
Indeed, I set DNS explicitly at the router and turned off Windows private network firewall on the Windows barrier server, and now my mac barrier client is working again. No barefruit DNS. I'm still not sure why that hijacks the barrier client, but the log I displayed previously:
is now:
without the trailing colon and the IP address to barefruit.