title: Powershell remoting not working on same machine with hostname
body: <p>Powershell Remoting failed with local server hostname, whereas works with remote server hostname. I am getting this error with local server hostname:</p>
  
  <blockquote>
    <p>The WInRM client sent a request to an http server and got a response
    saying the requested http url was not available.</p>
  </blockquote>
  
  <p><code>Winrs -r:http://servername:5985 "dir"</code> not working and throws same error.</p>
  
  <p>I tried <code>winrm qc</code>, <code>Enable-PSRemoting</code>, WinRM listener listening ipv6, GPO enabled with  * on both ipv6 and ipv4 . Nothing worked</p>