Hello,
I am developing a provider hosted app using VS2013 installed on my local machine connected to a shrepoint server installed on a windows server 2008R2. I have completed all the steps needed to configure the environment and that they are listed under this page http://msdn.microsoft.com/en-us/library/office/fp179901(v=office.15).aspx
But still, when i start the application from VS using F5, the browser opens and it redirects to localhost under a specific port, and then it throws Unauthorized 401 exception. I think in this case the URL should be the shrepoint server URL since the app is hosted there and the web app is hosted under IIS on the server