public static void main(String[] args) { if (System.getSecurityManager() == null) {//installing security manager System.setSecurityManager(new SecurityManager()); } try {//create and export remote object RemoteMediaServerInterface mediaServer= new RemoteMediaServer(); RemoteMediaServerInterface stub = (RemoteMediaServerInterface) UnicastRemoteObject.exportObject(mediaServer,0); //registering the remote object Registry registry = LocateRegistry.getRegistry("172.17.1.40",1099); //this is line 67 which is reffered in the error message registry.rebind("RemoteMediaServer", stub); } catch (Exception e) { e.printStackTrace(); } System.out.println("end of ...