Connection problems with barrier client and server on the host and guest OS virtualized with qemu / kvm

Hello to everyone.

I’m trying to configure Barrier on the server and client side of the two OSes that I’m running because I want to use the same mouse and keyboard for both. This is what Ifconfig says on the server side :

root@ziomario-Z390-AORUS-PRO:/home/ziomario# ifconfig

anbox0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500

inet 192.168.250.1 netmask 255.255.255.0 broadcast 0.0.0.0

eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500

inet 192.168.1.6 netmask 255.255.255.0 broadcast 192.168.1.255

tap0: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500

inet6 fe80::d8f5:6dff:fef8:f194 prefixlen 64 scopeid 0x20

ether eb:f5:6d:f8:f1:94 txqueuelen 1000 (Ethernet)

virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500

inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255

virbr0-nic: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500

ether 63:54:00:6b:98:0e txqueuelen 1000 (Ethernet)

Instead,this is what Ifconfig says on the client side :

en0 = 192.168.122.63

utun0 = no IP

utun1 = no IP

On the client side,on the barrier panel I selected “client”. Screen name = pc-di-mario.local. Server IP = 192.168.1.6. But I tried also : 192.168.122.1 and 192.168.22.63

On the server side,on the barrier panel I selected “server”. IP = “192.168.1.6”

Nothing worked .

This is the log of barrier on the server side :

[2019-10-28T15:17:47] INFO: accepted secure socket

[2019-10-28T15:17:47] INFO: ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD

[2019-10-28T15:17:47] NOTE: accepted client connection

[2019-10-28T15:17:47] NOTE: disconnecting client “pc-di-mario.local”

[2019-10-28T15:17:47] WARNING: unrecognised client name “pc-di-mario.local”, check server config

[2019-10-28T15:17:47] NOTE: client “pc-di-mario.local” has disconnected

[2019-10-28T15:17:48] INFO: OpenSSL 1.1.1b 26 Feb 2019

[2019-10-28T15:17:48] ERROR: ssl error occurred (system call failure)

[2019-10-28T15:17:48] ERROR: failed to accept secure socket

[2019-10-28T15:17:48] INFO: client connection may not be secure

This is how I have configured the net for the guest OS with qemu :

sudo ip tuntap add dev tap0 mode tap

sudo ip link set tap0 up promisc on

sudo ip link set dev virbr0 up

sudo brctl addif virbr0 tap0

-netdev tap,id=net0,ifname=tap0,script=no,downscript=no -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:c9:18:27