At the client site, just extend RemoteClient and provide the valid url od the remote endpoint.
It's up to you what kind of protocol or technology you are using.
In the following example I've used Spring Rest Api, but you may use whatever you like.
There is just a few lines of code necessarily to establish the connection:
From that moment on, you are able to call any query you want, remotely and via a single endpoint.
Please note, that at the moment, Remote Server is not transactional.
There is auto commit in use after every modification at the server side.
Remote Server also does not allow the execution of native queries.