If different port numbers are used for the client and server sides, the client will not be able to establish a connection with the server. This is because the client and server need to use the same port numbers to communicate with each other.

For example, if the server is listening on port 80, the client must also connect to port 80 in order to establish a connection. If the client tries to connect to a different port, the server will not recognize the connection and will not respond.

In summary, using different port numbers for the client and server sides will result in a failed connection attempt.

What happens if you use different port numbers for the client and server sides

原文地址: https://www.cveoy.top/t/topic/MrB 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录