passing IP addresses as parameters