ID:273360
 
There's anyway to make a list with all Ports without doing this

var/list/Ports=list("1001","1002")
You could use a for loop from a minimum port number to a maximum port number, and adding those numbers to the list.
In response to HolyDoomKnight
Of course, if the ports could be that easily defined then there would be no purpose of creating a list of them in the first place.
Assuming you mean TCP and UDP ports, any unsigned 16-bit number is a valid port number.

If you're looking for the well-known ports, there's a list on Wikipedia