Establish socket connections to a range of ports.