use getHostName() for local host