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

前端 未结 12 1450
刺人心
刺人心 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:21

    Choose a default port that doesn't interfere with the most common daemons and servers. Also make sure that the port number isn't listed as an attack vector for some virus -- some companies have strict policies where they block such ports no matter what. Last but not least, make sure the port number is configurable.

提交回复
热议问题