dynamic update the (host, port) and (user, passwd)