diff --git a/fitnesse/src/fitnesse/client/FitServerServletInvoker.java b/fitnesse/src/fitnesse/client/FitServerServletInvoker.java index 62bab55f4f..2a87b0d9df 100644 --- a/fitnesse/src/fitnesse/client/FitServerServletInvoker.java +++ b/fitnesse/src/fitnesse/client/FitServerServletInvoker.java @@ -18,7 +18,11 @@ public class FitServerServletInvoker extends ServletInvoker { CommandLine commandLine = new CommandLine("url host port socketToken"); if (commandLine.parse(argv)) { servletUrl = commandLine.getArgument("url"); - fitnesseHostAddress = commandLine.getArgument("host"); + String host = System.getProperty("FITNESSE_HOST"); + if (host == null || host.trim().length() == 0) + fitnesseHostAddress = commandLine.getArgument("host"); + else + fitnesseHostAddress = host; fitnessePort = Integer.parseInt(commandLine.getArgument("port")); socketToken = Integer.parseInt(commandLine.getArgument("socketToken")); } else {