Add the possibility to use a config for host, port and protocol..