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

前端 未结 12 1463
刺人心
刺人心 2020-12-07 23:55

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 th

12条回答
  •  情歌与酒
    2020-12-08 00:13

    If this is for an application that you expect to be used widely, then register a number here so no-one else uses it.

    Otherwise, just pick an unused one randomly.

    The problem with using one in the dynamic range is that it may not be available because it may be being used for a dynamic port number.

提交回复
热议问题