Correct IP check