adds printIP to get ips