title: Unable to connect to the Microsoft Visual Studio Remote Debuggger named xx. The connection with the remote endpoint was terminated
body: <p>I try to remote debug an Azure app, but when trying to attach the debugger (manually or automatically with the cloud explorer) I get the error:</p>
  
  <blockquote>
    <p>Unable to connect to the Microsoft Visual Studio Remote Debuggger
    named xx. The connection with the remote endpoint was terminated.</p>
  </blockquote>
  
  <p>In the Event Viewer of the apps server I get the event:</p>
  
  <blockquote>
    <p>Msvsmon was unable to start a server named '127.0.0.1:50119'. The
    following error occurred: An instance of the remote debugger is
    already running on this computer, or another process is already bound
    to the specified TCP/IP port.  View Msvsmon's help for more
    information. 08005E80</p>
  </blockquote>
  
  <p>What did I already do:</p>
  
  <ul>
  <li>Delete the web app and publishing it again (debug mode)</li>
  <li>Turned off the firewall on my development machine</li>
  <li>Checked that the Remote Debugging on the azure app is set to ON in the portal and has the correct Remote Visual Studio version (2015 update 2 in my case)</li>
  <li>I can remote debug a UWP app on another machine on my LAN</li>
  </ul>
  
  <p>So how can I debug my webapp?</p>