[GH-ISSUE #1943] WARNING: failed to connect to server: Connection was refused: A > B doesn't work, B > A works #1419

Open
opened 2026-05-05 07:49:19 -06:00 by gitea-mirror · 8 comments
Owner

Originally created by @Rings4 on GitHub (May 31, 2023).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1943

What happened?

I'm at work trying to connect my work PC to my Surface Pro.

Work PC is server, Surface Pro is client, entered the IP manually on client and arranged the server layout on the server to have the client on the right. I entered its name correctly. However, the client logs say "WARNING: failed to connect to server: Connection was refused" over and over again. SSL and client certificate disabled on both machines.

The following are all allowed in both firewalls:

Open source KVM software
Open source KVM software client
Open source KVM software daemon
Open source KVM software server
Bonjour
Bonjour Service
barrier Listener

I reversed the roles so the server became client and vice versa. That worked. So I don't know what the issue here is.

Version

v2.4.0

Git commit hash (if applicable)

3e0d758b

If applicable, where did you install Barrier from?

Github

What OSes are you seeing the problem on? (Check all that apply)

Windows

What OS versions are you using?

Client: Windows 11
Server: Windows 10

Relevant log output

[2023-05-31T10:29:35] INFO: starting client
[2023-05-31T10:29:35] INFO: config file: C:/Users/Master Surface/AppData/Local/Temp/Barrier.yJBhWO
[2023-05-31T10:29:35] INFO: log level: INFO
[2023-05-31T10:29:35] INFO: service command updated
[2023-05-31T10:29:36] INFO: starting new process as privileged user
[2023-05-31T10:29:36] INFO: drag and drop enabled
[2023-05-31T10:29:36] NOTE: started client
[2023-05-31T10:29:36] NOTE: connecting to '192.168.0.17': 192.168.0.17:24800
server status: active
[2023-05-31T10:29:38] WARNING: failed to connect to server: Connection was refused
[2023-05-31T10:29:39] NOTE: connecting to '192.168.0.17': 192.168.0.17:24800
[2023-05-31T10:29:41] WARNING: failed to connect to server: Connection was refused
[2023-05-31T10:29:42] INFO: service command updated
[2023-05-31T10:29:42] NOTE: connecting to '192.168.0.17': 192.168.0.17:24800
[2023-05-31T10:29:43] INFO: process started but command is empty, shutting down
[2023-05-31T10:29:43] INFO: got ipc shutdown message
[2023-05-31T10:29:43] NOTE: stopped client
[2023-05-31T10:29:44] INFO: process 7916 was shutdown gracefully

Any other information

No response

Originally created by @Rings4 on GitHub (May 31, 2023). Original GitHub issue: https://github.com/debauchee/barrier/issues/1943 ### What happened? I'm at work trying to connect my work PC to my Surface Pro. Work PC is server, Surface Pro is client, entered the IP manually on client and arranged the server layout on the server to have the client on the right. I entered its name correctly. However, the client logs say "WARNING: failed to connect to server: Connection was refused" over and over again. SSL and client certificate disabled on both machines. The following are all allowed in both firewalls: ``` Open source KVM software Open source KVM software client Open source KVM software daemon Open source KVM software server Bonjour Bonjour Service barrier Listener ``` I reversed the roles so the server became client and vice versa. That worked. So I don't know what the issue here is. ### Version v2.4.0 ### Git commit hash (if applicable) 3e0d758b ### If applicable, where did you install Barrier from? Github ### What OSes are you seeing the problem on? (Check all that apply) Windows ### What OS versions are you using? Client: Windows 11 Server: Windows 10 ### Relevant log output ```shell [2023-05-31T10:29:35] INFO: starting client [2023-05-31T10:29:35] INFO: config file: C:/Users/Master Surface/AppData/Local/Temp/Barrier.yJBhWO [2023-05-31T10:29:35] INFO: log level: INFO [2023-05-31T10:29:35] INFO: service command updated [2023-05-31T10:29:36] INFO: starting new process as privileged user [2023-05-31T10:29:36] INFO: drag and drop enabled [2023-05-31T10:29:36] NOTE: started client [2023-05-31T10:29:36] NOTE: connecting to '192.168.0.17': 192.168.0.17:24800 server status: active [2023-05-31T10:29:38] WARNING: failed to connect to server: Connection was refused [2023-05-31T10:29:39] NOTE: connecting to '192.168.0.17': 192.168.0.17:24800 [2023-05-31T10:29:41] WARNING: failed to connect to server: Connection was refused [2023-05-31T10:29:42] INFO: service command updated [2023-05-31T10:29:42] NOTE: connecting to '192.168.0.17': 192.168.0.17:24800 [2023-05-31T10:29:43] INFO: process started but command is empty, shutting down [2023-05-31T10:29:43] INFO: got ipc shutdown message [2023-05-31T10:29:43] NOTE: stopped client [2023-05-31T10:29:44] INFO: process 7916 was shutdown gracefully ``` ### Any other information _No response_
Author
Owner

@JZoares commented on GitHub (May 31, 2023):

I'm having the same issue, i have used barrier multiple times across several devices (All OS's). Recently i acquired a Windows 11 machine and want to use with my Linux (Server).

The issue is the same Windows machine (A) does not work as client but works as a server, tested with my linux machine (B).

I have disabled the firewall added inbound and outbound rules to the used port, added barriers.exe to be an allowed program, no ssl certification, fixed screen resolution from 125% to 100%, installed bonjour and still can't connect as client.

I've also pinged both devices and i get a connection.

<!-- gh-comment-id:1570567950 --> @JZoares commented on GitHub (May 31, 2023): I'm having the same issue, i have used barrier multiple times across several devices (All OS's). Recently i acquired a Windows 11 machine and want to use with my Linux (Server). The issue is the same Windows machine (A) does not work as client but works as a server, tested with my linux machine (B). I have disabled the firewall added inbound and outbound rules to the used port, added barriers.exe to be an allowed program, no ssl certification, fixed screen resolution from 125% to 100%, installed bonjour and still can't connect as client. I've also pinged both devices and i get a connection.
Author
Owner

@ylluminate commented on GitHub (May 31, 2023):

AFAIK, the project has moved to: https://github.com/input-leap/input-leap

<!-- gh-comment-id:1570690901 --> @ylluminate commented on GitHub (May 31, 2023): AFAIK, the project has moved to: https://github.com/input-leap/input-leap
Author
Owner

@Rings4 commented on GitHub (May 31, 2023):

AFAIK, the project has moved to: https://github.com/input-leap/input-leap

How do you install that? I couldn't find a way to install it.

<!-- gh-comment-id:1570951948 --> @Rings4 commented on GitHub (May 31, 2023): > AFAIK, the project has moved to: https://github.com/input-leap/input-leap How do you install that? I couldn't find a way to install it.
Author
Owner

@ylluminate commented on GitHub (May 31, 2023):

That's the purpose of that message you posted in earlier. We're seemingly in a semi-holding pattern for binary releases for "easy" installation as per @shymega...

<!-- gh-comment-id:1570965413 --> @ylluminate commented on GitHub (May 31, 2023): That's the purpose of that message you posted in earlier. We're seemingly in a semi-holding pattern for binary releases for "easy" installation as per @shymega...
Author
Owner

@Rings4 commented on GitHub (May 31, 2023):

That's the purpose of that message you posted in earlier. We're seemingly in a semi-holding pattern for binary releases for "easy" installation as per @shymega...

Ah, do you know if there's an eta for a release then? Would love to install it.

<!-- gh-comment-id:1570994557 --> @Rings4 commented on GitHub (May 31, 2023): > That's the purpose of that message you posted in earlier. We're seemingly in a semi-holding pattern for binary releases for "easy" installation as per @shymega... Ah, do you know if there's an eta for a release then? Would love to install it.
Author
Owner

@ylluminate commented on GitHub (Jun 1, 2023):

I think you're going to have to follow updates here @Rings4: https://github.com/input-leap/input-leap/discussions/1656 (cc @shymega).

This is the same discussion which you yourself commented on about 10 hours ago @Rings4...

<!-- gh-comment-id:1571210411 --> @ylluminate commented on GitHub (Jun 1, 2023): I think you're going to have to follow updates here @Rings4: https://github.com/input-leap/input-leap/discussions/1656 (cc @shymega). This is the same discussion which you yourself commented on about 10 hours ago @Rings4...
Author
Owner

@Rings4 commented on GitHub (Jun 1, 2023):

I think you're going to have to follow updates here @Rings4: input-leap/input-leap#1656 (cc @shymega).

This is the same discussion which you yourself commented on about 10 hours ago @Rings4...

I know I commented on it lol I posted that comment after making this post here. There's no way to install it, so it doesn't exactly help me with my issue. If I knew an eta for a release I can decide whether I can wait or go with another software.

<!-- gh-comment-id:1572193973 --> @Rings4 commented on GitHub (Jun 1, 2023): > I think you're going to have to follow updates here @Rings4: [input-leap/input-leap#1656](https://github.com/input-leap/input-leap/discussions/1656) (cc @shymega). > > This is the same discussion which you yourself commented on about 10 hours ago @Rings4... I know I commented on it lol I posted that comment after making this post here. There's no way to install it, so it doesn't exactly help me with my issue. If I knew an eta for a release I can decide whether I can wait or go with another software.
Author
Owner

@shymega commented on GitHub (Jun 3, 2023):

Waiting for feedback on a CI PR review, then the installer will be built at the same time. Right now, there's no way to do this. There's no ETA for v3 release right now, but I have created a milestone.

<!-- gh-comment-id:1575195892 --> @shymega commented on GitHub (Jun 3, 2023): Waiting for feedback on a CI PR review, then the installer will be built at the same time. Right now, there's no way to do this. There's no ETA for v3 release right now, but I have created a milestone.
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#1419
No description provided.