KPMG Interview Question

Implement a port scanner given a IP address range.