[GH-ISSUE #572] Can't connect with linux pc as server but macbook as server works perfectly. #449

Closed
opened 2026-05-05 06:24:26 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @nixoye on GitHub (Feb 23, 2020).
Original GitHub issue: https://github.com/debauchee/barrier/issues/572

Operating Systems

Server: Elementary OS 5.1.2

Client: Mac OS Catalina

Barrier Version

on elementary os im using the stable snap 2.32.2-snapshot-9080ce45 november 10,2019
on mac os catalina im using version 2.3.2-Release-210c2b70 october 3, 2019

Steps to reproduce bug

READ ME, DELETE ME: Try to be succinct. If your bug is intermittent, try and describe what you're doing when it happens most.

I have configured the server section by dragging in a screen and naming it the correct screen name.
If i use my elementary os pc as the server i get this in its logs
`[2020-02-23T09:58:32] INFO: stopping barrier desktop process
[2020-02-23T09:58:32] NOTE: stopped server
[2020-02-23T09:58:32] INFO: process exited normally

[2020-02-23T09:58:32] INFO: starting server
[2020-02-23T09:58:32] INFO: config file: /tmp/Barrier.ZK4209
[2020-02-23T09:58:32] INFO: log level: INFO
[2020-02-23T09:58:32] WARNING: failed to register hotkey ScrollLock (id=ef14 mask=0000)
[2020-02-23T09:58:32] NOTE: started server (IPv4/IPv6), waiting for clients`

and this in my macbooks log when trying to connect to the server

[2020-02-23T09:59:42] NOTE: connecting to '10.20.41.76': 10.20.41.76:24801 [2020-02-23T09:59:42] INFO: OpenSSL 1.0.2t 10 Sep 2019 [2020-02-23T09:59:57] WARNING: failed to connect to server: Timed out

If i use the macbook as a server everything works fine

Originally created by @nixoye on GitHub (Feb 23, 2020). Original GitHub issue: https://github.com/debauchee/barrier/issues/572 ### Operating Systems ### Server: Elementary OS 5.1.2 Client: Mac OS Catalina ### Barrier Version ### on elementary os im using the stable snap 2.32.2-snapshot-9080ce45 november 10,2019 on mac os catalina im using version 2.3.2-Release-210c2b70 october 3, 2019 ### Steps to reproduce bug ### **READ ME, DELETE ME**: Try to be succinct. If your bug is intermittent, try and describe what you're doing when it happens most. I have configured the server section by dragging in a screen and naming it the correct screen name. If i use my elementary os pc as the server i get this in its logs `[2020-02-23T09:58:32] INFO: stopping barrier desktop process [2020-02-23T09:58:32] NOTE: stopped server [2020-02-23T09:58:32] INFO: process exited normally [2020-02-23T09:58:32] INFO: starting server [2020-02-23T09:58:32] INFO: config file: /tmp/Barrier.ZK4209 [2020-02-23T09:58:32] INFO: log level: INFO [2020-02-23T09:58:32] WARNING: failed to register hotkey ScrollLock (id=ef14 mask=0000) [2020-02-23T09:58:32] NOTE: started server (IPv4/IPv6), waiting for clients` and this in my macbooks log when trying to connect to the server `[2020-02-23T09:59:42] NOTE: connecting to '10.20.41.76': 10.20.41.76:24801 [2020-02-23T09:59:42] INFO: OpenSSL 1.0.2t 10 Sep 2019 [2020-02-23T09:59:57] WARNING: failed to connect to server: Timed out` If i use the macbook as a server everything works fine
Author
Owner

@kernoeb commented on GitHub (Feb 24, 2020):

Try this on your Linux (this worked for me) :
sudo iptables -I INPUT -p tcp --dport 24800 --syn -j ACCEPT

For me the issue was between two Linux computers, only one accepted to be the server

Change the port if yours is different (in Barrier settings)

<!-- gh-comment-id:590427550 --> @kernoeb commented on GitHub (Feb 24, 2020): Try this on your Linux (this worked for me) : `sudo iptables -I INPUT -p tcp --dport 24800 --syn -j ACCEPT` For me the issue was between two Linux computers, only one accepted to be the server Change the port if yours is different (in Barrier settings)
Author
Owner

@nixoye commented on GitHub (Feb 24, 2020):

@kernoeb im gettin failed to connect to server: connection refused now

<!-- gh-comment-id:590510739 --> @nixoye commented on GitHub (Feb 24, 2020): @kernoeb im gettin failed to connect to server: connection refused now
Author
Owner

@the-wes commented on GitHub (Mar 1, 2020):

Is your server log saying anything different now? You should be getting something more in it if the client is returning connection refused

<!-- gh-comment-id:593062279 --> @the-wes commented on GitHub (Mar 1, 2020): Is your server log saying anything different now? You should be getting something more in it if the client is returning connection refused
Author
Owner

@nixoye commented on GitHub (Mar 2, 2020):

@the-wes I tried again today and suddenly its working. I haven't changed anything so I'm not sure how that is.

<!-- gh-comment-id:593606967 --> @nixoye commented on GitHub (Mar 2, 2020): @the-wes I tried again today and suddenly its working. I haven't changed anything so I'm not sure how that is.
Author
Owner

@the-wes commented on GitHub (Mar 3, 2020):

Eddies in the space-time continuum

<!-- gh-comment-id:593785177 --> @the-wes commented on GitHub (Mar 3, 2020): Eddies in the space-time continuum
Author
Owner

@RCheesley commented on GitHub (Apr 12, 2020):

Just wanted to add I had this problem with Linux machine as server. After running the iptables command I restarted the app and all is well :) Thanks!

<!-- gh-comment-id:612600120 --> @RCheesley commented on GitHub (Apr 12, 2020): Just wanted to add I had this problem with Linux machine as server. After running the iptables command I restarted the app and all is well :) Thanks!
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#449
No description provided.