output the slightly cryptic "out of range" message when connecting to a random port instead of the just plain wrong "out of memory".
output the slightly cryptic "out of range" message when connecting to a random port instead of the just plain wrong "out of memory".