Moved port number generation to a goroutine/generator.
Allocates ports sequentially rather than randomly.