diff --git a/cli/src/main/java/de/jplag/cli/server/ReportViewer.java b/cli/src/main/java/de/jplag/cli/server/ReportViewer.java index af9df1853..77c847d34 100644 --- a/cli/src/main/java/de/jplag/cli/server/ReportViewer.java +++ b/cli/src/main/java/de/jplag/cli/server/ReportViewer.java @@ -35,7 +35,7 @@ public int start() throws IOException { if (server != null) { throw new IllegalStateException("Server already started"); } - server = HttpServer.create(new InetSocketAddress(InetAddress.getLocalHost(), 0), 0); + server = HttpServer.create(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0), 0); server.createContext("/", this); server.setExecutor(null); server.start();