changed getHostName to getHostAddress