ip address parameter checking (need proper libraries for this)