make sure ip octet numbers are between 1 and 255