Reputation: 889
Working in visual studios and I created a rest API.
When I click run on the project it binds to localhost. Can someone point me in the right direction on how to bind to 0.0.0.0 so that my API can be accessed from outside my computer so that I may do some testing on my services externally using my computers IP address on the network?
Question
How do I bind my visual studio service to my computers IP address and not localhost?
Upvotes: 0
Views: 1300
Reputation: 1358
I'm guessing you're probably using IISExpress since that's the VS default, which won't let you connect from other computers.
You could consider using a proxy tool like ngrok to allow remote access : https://ngrok.com/
Or consider changing to use IIS which you'll be able to configure as you need.
Upvotes: 1