Which port number should be used for network example code?

后端 未结 3 1555
你的背包
你的背包 2020-12-12 03:05

I\'ve written a little Haskell network example, but i don\'t know, which port i should use.

i couldn\'t find a example port number in the IETF papers i found or in W

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-12 03:36

    Unless you really need a static fixed port, you are better off letting the OS pick an available random port for you, and then you can display/publish the actual port chosen so you can let your clients know which port to connect to.

提交回复
热议问题