Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

How do I configure Visual Studio to use specific IP in debug?

$
0
0

Hi,

I'm developing a new MVC 5 app that is a Windows Azure cloud service. It also uses Facebook authentication.

The problem is that when I debug my code, the Azure emulators are forcing IIS Express to use 127.0.0.1:SomePortNumber. Even though I enter this IP and port number in Facebook app profile as the sandbox URL, Facebook refuses to redirect back to 127.0.0.1 -- I assume due to security reasons.

I posted some questions about this on StackOverflow and someone suggested this solution:
http://stackoverflow.com/questions/9169641/azure-emulator-web-site-is-not-visible-by-facebook

It's easy enough to create an entry in my local hosts file but how do I get both Visual Studio and IIS Express to use a fake domain for debugging purposes as opposed to 127.0.0.1?

I'd appreciate your help with this. Thanks.

P.S. Once, for whatever reason, Visual Studio/IIS Express, used 127.0.0.2 and Facebook accepted that IP. So, I'd be perfectly happy if I could get my app to use 127.0.0.2 to debug my app.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>