Auto generate port numbers