import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class server { public static void main(String[] args) throws IOException { DatagramSocket socket = new DatagramSocket(8080…