Handle hosts in the format of "hostname:port"