Populate default ports array with a loop