mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-15 14:16:02 -06:00
[GH-ISSUE #930] How to connect two PC using Ethernet Cable? #741
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#741
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 @AKSKMY on GitHub (Oct 27, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/930
By default what I did was to connect both laptop and PC using one Ethernet Cable and then change both IP address to be within the same gateway but different IP addresses. But still doesn't seem to work. I'm wanting to shift to LAN cuz Wifi isn't stable at all for me. Once high ping spike the keyboard and mouse sharing becomes totally unusable. Pls advice, thanks!
@MountNoperest commented on GitHub (Oct 28, 2020):
I got it working with Ubuntu 18.04 and the latest version of Manjaro kernel:'5.4.72-1-MANJARO.
This is how I did it.
I hope this works for you.
@roflcoopter commented on GitHub (Oct 29, 2020):
Any idea how to do this on windows?
@MountNoperest commented on GitHub (Oct 29, 2020):
@roflcoopter Yes somewhat. My windows computer assigned an automatic IP adress to the ethernet cable when it was connected to the Manjaro computer. The connection took a while but after it assigned the IP adress, I restarted barrier and connected to the ethernet IP adress. The Manjaro computer was configured the same way as mentioned in my other comment.
I don't know how to connect windows to windows computer, since I only own 1 windows pc.
I hope this helps.
@ghost commented on GitHub (Oct 29, 2020):
You made mistake with setting your lan network like this. If your wifi connection is not stable, then you only need to connect both your pc's to home router via cable. If you connect 2 pc's together you lose your connection to Internet. Anyway, there what you need to do if you still want get things your way:
1: set ip address of server pc to 192.168.0.2 (subnet mask 255.255.255.0, gateway empty(not zeros))
2: set ip address of client pc to 192.168.0.3 (subnet mask 255.255.255.0, gateway 192.168.0.2)
3: set barrier settings acording to those settings, and that it.
@MountNoperest commented on GitHub (Oct 29, 2020):
A thank you @91imp91 for the clarification. When I tested with the Ethernet cable directly connected to each PC through the Ethernet port, I didn't experience any loss of Wi-Fi on either Linux to Linux, or Linux to Windows connected and configured like this. I don't know why it worked for me.
@namefailed commented on GitHub (Sep 28, 2022):
Is there any benefit to doing this? I am unable to connect directly to the router in my current situation, but I can connect the Client & Server together via an ethernet cable. Would this reduce some of the lag/hiccups caused by my, sometimes amazing, sometimes garbo, internet connection?
Thanks!
@AKSKMY commented on GitHub (Nov 5, 2025):
Btw I end up using a router (which provided internet as well) to host my barrier connection as a bridge between two PCs. Works fine most of the time.
@nbolton commented on GitHub (Nov 5, 2025):
It might be helpful to others to continue this discussion upstream in Deskflow, as Barrier is no longer in development. The Input Leap (fork) community is a bit more active than this one, but not as active as upstream Deskflow.
@AKSKMY commented on GitHub (Nov 5, 2025):
Hi I see! Just wondering is Deskflow an improved version of Barrier? I'm still using Barrier as back then there wasn't anything else like Barrier.
Update** I shift to Deskflow but seems like the TLS encryption has issues had to turn it off. Other than that can't see much ground breaking difference haha. Will see how it goes!
Haha saw your website @nbolton https://symless.com/synergy/news/why-did-barrier-fail cool!
@nbolton commented on GitHub (Nov 5, 2025):
Deskflow is the upstream of Barrier; that is to say Barrier is a fork of Deskflow. It was forked around v1.9(?) of Deskflow (which is now at v1.24)... so quite a long time ago. There are some improvements made in Barrier that have not yet been ported back upstream to Deskflow. So, in some ways it's better, and in some ways still has some aspects to improve. If you're wondering about Synergy, that is now downstream of Deskflow.
What issues did you have with TLS? Perhaps you can link to the issue on Deskflow?
Just trying to help everyone understand what's going on! :)