public static void main(String[] args) {
        try {
            Socket s = null;
            for(int i = 0; i < Robot.robots.size(); i++) {
                try {
                    SocketAddress local = new InetSocketAddress(InetAddress.getLocalHost(), CBCGUI.PORT + 1 + i);
                    SocketAddress server = new InetSocketAddress(InetAddress.getLocalHost(), CBCGUI.PORT);
                    
                    s = new Socket();
                    s.bind(local);
                    s.connect(server);
                    break;
                } catch(BindException ex) {
                    s = null;
                }
            }
            if(s == null) return;
            
            
            InputStream is = s.getInputStream();
            OutputStream os = s.getOutputStream();
            for(int i; (i = is.read()) != -1;) {
                char c = (char) i;
                
                System.out.println(c);
                
                if(c == STATUS) os.write(ACTIVE);
            }
        } catch(IOException ex) {
            ex.printStackTrace();
        }
    }