Joke Collection Website - Blessing messages - How to use ports * * * for various services in java?

How to use ports * * * for various services in java?

You cannot use a port at the same time.

The definition of port number should be added with the corresponding protocol. For example, there are 253 ports under TCP protocol and 253 ports under UDP protocol. Because the TCP and UDP protocols of the TCP/IP transport layer are two completely independent software modules, their respective port numbers are also independent of each other, and there is no conflict between them. So it is no problem for two servers to use one port, provided that they are under different protocols.