Add possibility to define remote host and port on client