Java helper tools for determining some host information