@@ -0,0 +1,697 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage chat;%0A%0Aimport java.io.IOException;%0Aimport java.net.ServerSocket;%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0A%0A/**%0A *%0A * @author abc%0A */%0Apublic class SocketServer extends Send%0A%7B%0A    public SocketServer()%0A    %7B%0A        try %7B%0A            ServerSocket ss=new ServerSocket(4567);%0A            sock=ss.accept();%0A            initializer();%0A        %7D catch (IOException ex) %7B%0A            Logger.getLogger(SocketServer.class.getName()).log(Level.SEVERE, null, ex);%0A        %7D%0A    %7D%0A    %7D%0A    %0A%0A

Create ServerSocket.java