When the client app starts, user enters the server address as well as the client port it uses to communicate with the server.
Why user has to enter the port number? This is not good usability and it should be unnecessary. Just use any available port number the Socket API should be able to allocate.
When the client app starts, user enters the server address as well as the client port it uses to communicate with the server.
Why user has to enter the port number? This is not good usability and it should be unnecessary. Just use any available port number the Socket API should be able to allocate.