DatagramSocket serverSocket = new DatagramSocket(port);
Constructs a datagram socket and binds it to the specified port on the local host machine.
it does not create a channel between client and server.
when the server starts to listen, client can send udp packet to this udp port number.
for example if you want to bind a udp socket to a specific ip and port number use below method
bindAddress="192.148.1.0";
DatagramSocket socket=new (bindPort,InetAddress.getByName(bindAddress));