diff --git a/common/src/main/java/de/bluecolored/bluemap/common/web/http/Server.java b/common/src/main/java/de/bluecolored/bluemap/common/web/http/Server.java index 25e09b37c..2e2924b7f 100644 --- a/common/src/main/java/de/bluecolored/bluemap/common/web/http/Server.java +++ b/common/src/main/java/de/bluecolored/bluemap/common/web/http/Server.java @@ -55,7 +55,7 @@ public void bind(SocketAddress address) throws IOException { this.server.add(server); if (checkIfBoundToAllInterfaces(address)) { - Logger.global.logInfo("WebServer bound to all network interfaces on port " + ((InetSocketAddress) address).getPort()); + Logger.global.logInfo("WebServer bound to all network interfaces on port " + ((InetSocketAddress) server.getLocalAddress()).getPort()); } else { Logger.global.logInfo("WebServer bound to: " + server.getLocalAddress()); }