[GH-ISSUE #930] How to connect two PC using Ethernet Cable? #741

Open
opened 2026-05-05 07:01:00 -06:00 by gitea-mirror · 10 comments
Owner

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!

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!
Author
Owner

@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.

  1. I connected the ethernet cable to each computers ethernet port.
  2. I went into the system settings "edit connection" and configured the "wired connection 1"
    wired
  3. In the configuration of the wired connection, go to IP4-settings.
  4. In the "method dropdown menu choose "Only local link" and check off the "require IP4 addresses to complete the connection"
    connections
  5. Do this for the other computer as well.
  6. Setup Barrier as usual. The IP4 adress for the ethernet cable will be shown in barrier

I hope this works for you.

<!-- gh-comment-id:718203163 --> @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. 1. I connected the ethernet cable to each computers ethernet port. 2. I went into the system settings "edit connection" and configured the "wired connection 1" ![wired](https://user-images.githubusercontent.com/65341112/97494782-15066a80-1967-11eb-84d4-4c753e72dacc.png) 3. In the configuration of the wired connection, go to IP4-settings. 4. In the "method dropdown menu choose "Only local link" and check off the "require IP4 addresses to complete the connection" ![connections](https://user-images.githubusercontent.com/65341112/97495093-8b0ad180-1967-11eb-8fcd-e389186da5ed.png) 5. Do this for the other computer as well. 6. Setup Barrier as usual. The IP4 adress for the ethernet cable will be shown in barrier I hope this works for you.
Author
Owner

@roflcoopter commented on GitHub (Oct 29, 2020):

Any idea how to do this on windows?

<!-- gh-comment-id:718375924 --> @roflcoopter commented on GitHub (Oct 29, 2020): Any idea how to do this on windows?
Author
Owner

@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.

<!-- gh-comment-id:718661796 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:719027459 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:719048442 --> @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.
Author
Owner

@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!

<!-- gh-comment-id:1261353732 --> @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!
Author
Owner

@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.

<!-- gh-comment-id:3488675849 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:3490725424 --> @nbolton commented on GitHub (Nov 5, 2025): It might be helpful to others to continue this discussion [upstream](https://github.com/deskflow/deskflow) 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.
Author
Owner

@AKSKMY 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.

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!

<!-- gh-comment-id:3490771739 --> @AKSKMY commented on GitHub (Nov 5, 2025): > It might be helpful to others to continue this discussion [upstream](https://github.com/deskflow/deskflow) 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. 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!
Author
Owner

@nbolton commented on GitHub (Nov 5, 2025):

Just wondering is Deskflow an improved version of Barrier?

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.

Update** I shift to Deskflow but seems like the TLS encryption has issues had to turn it off.

What issues did you have with TLS? Perhaps you can link to the issue on Deskflow?

Haha saw your website @nbolton https://symless.com/synergy/news/why-did-barrier-fail cool!

Just trying to help everyone understand what's going on! :)

<!-- gh-comment-id:3493191246 --> @nbolton commented on GitHub (Nov 5, 2025): > Just wondering is Deskflow an improved version of Barrier? 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](https://github.com/deskflow/deskflow/wiki/Backport) 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. > Update** I shift to Deskflow but seems like the TLS encryption has issues had to turn it off. What issues did you have with TLS? Perhaps you can link to the issue on Deskflow? > Haha saw your website [@nbolton](https://github.com/nbolton) https://symless.com/synergy/news/why-did-barrier-fail cool! Just trying to help everyone understand what's going on! :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#741
No description provided.