Change settings from host and port to list of hosts with ports.