Hi,
I have build a very small MVC web application. Later I add very small Web API. It takes 3 parameters and returns 4 parameters (with use of Get Method).
Every time I run my solution I can see IIS Express running bottom right of the toolbar. When I use mouse and right click on running IIS Express I can see 2 running app. First one is my MVC app and second one is my Web API. Both shows different port. Why? Okay maybe some internal process uses different port. This I can understand. But why Web API in internet editor shows the port number and my web app isn't? This I don't get it.
If I use my both application in real world how to consume my Web API if there is a port that keep changes? If I close my VS2015 and run it again and use my Web API the port will change to something else. My last question is this. Can I set programmatically my Web API port to such as 8000 vs 8080? So when I run my Web API in real world, I can consume from diffrenet machine (mobile, embedded devize etc.).
Kind Regards