Code example for DatagramSocket

Methods: getLocalAddress, getLocalPort