get the code
as shown in the figure, the ip address does not change, but the port number changes all the time.
Boss, may I ask why this is?
get the code
as shown in the figure, the ip address does not change, but the port number changes all the time.
Boss, may I ask why this is?
first of all, you need to know how the client uses it, otherwise you can only guess roughly. From this point of view, it should be a random port. If the client is also made with netty, then you can be sure that it is xx.connect (ip,port). There is no specified port here, and at the same time, you need to send network information through socket. It is usually sent by selecting an unused port (the port is very large), and then shutting down to release the port
Previous: The imap mailbox extension uses the imap protocol to read qq messages and report errors.
Next: How to end a child thread that is in a blocking state after receiving Ctrl+C in python multithread