Ubuntu – Share keyboard and mouse in barrier between the windows machine and ubuntu 18.04.1LTS


I want to share a keyboard and mouse between two computers. One running windows, the other with Ubuntu (18.04). Since Synergy is paid software, I want to use Barrier.

It was quiet easy to download from:

Windows should run the server,
Ubuntu will run the client.

Here is the file to be downloaded for the windows as well as opensource but I've tried to install on opensource that is my ubuntu 18.04 machine it was even installing as client and important to note here I to use windows as a server which I have got that but ubuntu as client is not working properly so please can any one help me and thanks in advance.