How should one go about choosing a default TCP/IP port for a new service?

networking, tcp

Solution

Go here and pick a port with the description `Unassigned`

Problem

When developing an app that will listen on a TCP/IP port, how should one go about selecting a default port? Assume that this app will be installed on many computers, and that avoiding port conflicts is desired.

Original source

Related problems