Swtching from list of ports to host1:port,host2:port