Fixed: RMI 2.0?
This commit is contained in:
@@ -63,7 +63,7 @@ public class ClientLauncherTUI {
|
||||
int networkType = scanner.nextInt();
|
||||
System.out.println("Insert server IP: ");
|
||||
String IP = scanner.next();
|
||||
System.setProperty("java.rmi.server.hostname", IP);
|
||||
|
||||
// RMI
|
||||
if (networkType == 0) {
|
||||
// Connect
|
||||
@@ -73,6 +73,7 @@ public class ClientLauncherTUI {
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
System.setProperty("java.rmi.server.hostname", myIP);
|
||||
RMIClient client = new RMIClient(controller, IP, 1099, myIP);
|
||||
if (client.connect(username, proposedNumPlayers)) {
|
||||
System.out.println("Succesfully connected to RMI server\n\n");
|
||||
|
||||
Reference in New Issue
Block a user