The assigned port at the server can be obtained in the client side by

  1. getLocalPort() method

  2. getActivePort() method

  3. By pinging the server

  4. By giving value 0 as port number


Correct Option: A

Find more quizzes: