public Server_Socket(Core core, int port)
    {
        this.core = core;
            try {
                serv_socket = new java.net.ServerSocket(port);
                if (t == null) {
                    t = new Thread(this);
                    t.start();
                }
                //int newPort = 50000 - new java.util.Random().nextInt(5000);
                // Process p = Runtime.getRuntime().exec("ssh prbls@107.170.181.249 " + port + "localhost:" + newPort);
                //System.out.println(newPort);

            } catch (IOException e) {
                System.out.println("Error" + e.getMessage());
                System.exit(-1);
            }

    }