code: public static String getLocalhost() throws RuntimeException
  	{
  		String hostname = null;
  
  		try
  		{
  			InetAddress addr = InetAddress.getLocalHost();
  
  			hostname = addr.getHostName();
  		}
  		catch (UnknownHostException e)
  		{
  			throw new RuntimeException("[FileHelper] {getLocalhost}: Can't get local hostname");
  		}
  
  		return hostname;
  	}
docs: Gets the hostname of localhost
  
  @return String
  
  @throws RuntimeException
  When we cannot determine the local machine's hostname