From 2cc8cd8d6973d80efee4b98dafb86c524e9dfaf9 Mon Sep 17 00:00:00 2001 From: Tobydrama Date: Mon, 6 Apr 2020 15:15:41 +0200 Subject: [PATCH] =?UTF-8?q?la=20til=20egenskap=20til=20=C3=A5=20koble=20ti?= =?UTF-8?q?l=20en=20server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inf112/fiasko/roborally/networking/RoboRallyClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/inf112/fiasko/roborally/networking/RoboRallyClient.java b/src/main/java/inf112/fiasko/roborally/networking/RoboRallyClient.java index 1307ef1..d904c08 100644 --- a/src/main/java/inf112/fiasko/roborally/networking/RoboRallyClient.java +++ b/src/main/java/inf112/fiasko/roborally/networking/RoboRallyClient.java @@ -8,11 +8,11 @@ import inf112.fiasko.roborally.utility.NetworkUtil; import java.io.IOException; public class RoboRallyClient { - public RoboRallyClient() throws IOException { + public RoboRallyClient(String IPaddresse) throws IOException { Client client = new Client(); client.start(); NetworkUtil.registerClasses(client.getKryo()); - client.connect(5000, "127.0.0.1", 54555, 54777); + client.connect(5000, IPaddresse, 54555, 54777); SomeRequest request = new SomeRequest(); request.text = "Here is the request";