Moved getHosts to the new networking code