Possible fix for issues reported by Simon Sadedin
will now fall back to getHostName if getHostString isn't public