Home » JAVA Programming » Networking » Question
  1. Which API gets the SocketAddress (usually IP address + port number) of the remote host that this packet is being sent to or is coming from.
    1. address()
    2. InetAddress
    3. getAddress()
    4. getSocketAddress()
    5. None of these
Correct Option: D

getSocketAddress() is used to get the socket address.



Your comments will be displayed only after manual approval.