Hi, I'm working on a server-client assignment and I need to run my client program on several remote machines. The client program takes a port number as a parameter. How can I list the available ports on the machine running the server program, so I can use them in the client program? I know I can use netstat but I'm sorta confused with the options and flags. This is Unix btw.