From 5c3c59976fbd17589b8ad47d680436b9612d0de6 Mon Sep 17 00:00:00 2001 From: Elrabu <busch.elias@web.de> Date: Mon, 8 Jan 2024 12:06:58 +0100 Subject: [PATCH] eb093: Update: Added comment to explain server starting testing. --- .../hdm_stuttgart/battlearena/Model/Multiplayer/Server.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/hdm_stuttgart/battlearena/Model/Multiplayer/Server.java b/src/main/java/de/hdm_stuttgart/battlearena/Model/Multiplayer/Server.java index 8cf35eec..fddc2fae 100644 --- a/src/main/java/de/hdm_stuttgart/battlearena/Model/Multiplayer/Server.java +++ b/src/main/java/de/hdm_stuttgart/battlearena/Model/Multiplayer/Server.java @@ -27,8 +27,8 @@ public class Server { private boolean started = false; private static String ipaddress = "localhost"; - - /* public static void main(String[] args) throws IOException { //main method for testing purposes +//Uncomment these lines to test the server starting manually: + /* public static void main(String[] args) throws IOException { //main method for testing purposes Server server = new Server(); log.info("server starting..."); server.start(ipaddress, 4444); @@ -38,7 +38,7 @@ public class Server { public void startServer() throws IOException { Server server = new Server(); log.info("server starting..."); - server.start("localhost",4444); + server.start(ipaddress,4444); } public void start(String host_ip, int port) throws IOException { -- GitLab