Add port checks plus a minor IP validation scheme