Check range of ports