Can two applications listen to the same port?

前端 未结 17 1094
天涯浪人
天涯浪人 2020-11-22 03:50

Can two applications on the same machine bind to the same port and IP address? Taking it a step further, can one app listen to requests coming from a certain IP and the othe

17条回答
  •  不要未来只要你来
    2020-11-22 04:38

    Yes.

    From this article:
    https://lwn.net/Articles/542629/

    The new socket option allows multiple sockets on the same host to bind to the same port

提交回复
热议问题