check ip if match format as 10.20.*.*