Hi,
You will have to open a Server socket at a perticular port and wait for any packets to arrive. You will be in a while loop or something while reading is true. Once data is arrived, you can find out the packet content.
As you probably will know that Datagram Packets are connection...