1 package micropolisj.network;
3 import java.io.Serializable;
4 import java.net.MalformedURLException;
5 import java.rmi.Naming;
6 import java.rmi.NotBoundException;
7 import java.rmi.RemoteException;
8 import java.rmi.server.UnicastRemoteObject;
10 import micropolisj.engine.PlayerInfo;
12 public class RemoteClient extends UnicastRemoteObject implements Serializable{
23 if(ip.equalsIgnoreCase(
"local") || ip.equalsIgnoreCase(
"localhost")) {
25 System.out.println(
"local");
30 System.out.println(
">>> connected to server...");
33 }
catch (MalformedURLException | NotBoundException e) {
42 }
catch (RemoteException e) {
56 }
catch (RemoteException e) {
65 }
catch (RemoteException e) {