in reply to Code for port scanner on range of IPs
One thing you need to look for is overlapping ranges of IPs in that input-file.