set the ips and hosts