public String getFriend(String IP, String name){
        if(!name.toLowerCase().equals(InstantMessenger.user.toLowerCase())){
            InstantMessenger.remUser = name;
            frndName = name;
            try{
                sock = new Socket();
                sock.connect(new InetSocketAddress(IP,6789), 1300);
                DataInputStream s = new DataInputStream(sock.getInputStream());
                String ans = s.readUTF();
                if("no".equals(ans)){
                    return "no";
                }
                if(msgS == null)
                    msgS = new msgSend(sock);
                msgRecv msgR = new msgRecv(sock,frndName);
                msgR.start();
                InstantMessenger.server.server.close();
                InstantMessenger.server.stop();
                return "yes";
            } catch (IOException ex) {
                JOptionPane.showMessageDialog(this, "Unable To Connect! Sorry!");
                if(!InstantMessenger.server.isAlive())
                    InstantMessenger.server.start();
                return "unable";
            }
        }
        
        else{
            JOptionPane.showMessageDialog(this, "Becoming a smartass huh? dont, bitch!");
            return "unable";
        }
    }