I think it would be better to do

        System.getProperty("node0","localhost");

i.e. default it to localhost.

Same with the couple of other changes in this PR.