我在我的系统中运行这段代码,我不想写本地地址(本地主机)或远程地址(IP 地址)......
ref= (RMISIntf)Naming.lookup("rmi://"+"192.168.0.15"+"/RMIServer");
我也尝试了这段代码,直到我没有回应
ref= (RMISIntf)Naming.lookup("rmi://"+"localhost"+":"+8033+"/RMIServer");
//MyRemoteObject ro = (MyRemoteObject) Naming.lookup("//" + "localhost" + ":" + port + "/" + name);
//ref=Naming.rebind("rmi://localhost:8080/RmiServer",RMISIntf);