Creating the IP check