debauchee / barrier

Open-source KVM software
Other
27.7k stars 1.52k forks source link

WARNING: failed to connect to server: Connection was refused: A > B doesn't work, B > A works #1943

Open Rings4 opened 1 year ago

Rings4 commented 1 year ago

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

JZoares commented 1 year ago

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.

ylluminate commented 1 year ago

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

Rings4 commented 1 year ago

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.

ylluminate commented 1 year ago

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

Rings4 commented 1 year ago

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.

ylluminate commented 1 year ago

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

Rings4 commented 1 year ago

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.

shymega commented 1 year ago

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.