check for IP and MAC addresses