changed function name from compareIPs to sendIP