Last post Jul 18, 2017 06:18 AM by f.a.rodriguez
Jul 17, 2017 02:45 PM|f.a.rodriguez|LINK
I have an ASP .Net Core 1.1 Web API and Web App running on my localhost from Visual Studio 2017 on Windows 10.
When I run the projects, the API runs on http://localhost:50082/api/ and the web app on http://localhost:60856/
However, if others on the LAN try to access it (using my computer's IP address - http://192.168.1.101:60856/ they get a
Error. In fact,. I get this error too of I use my IP address. I've tried about a dozen variations in my C:\Users\<username>Documents\IISExpress\config\applicationhost.config file, such as:
<binding protocol="http" bindingInformation="*:60856:localhost" />
<binding protocol="http" bindingInformation="*:60856:" />
restarting the projects (and therefore IIS Express) every time, but nothing seems to work. Any ideas?
P.S. I have also turned off my firewall, and do not have any 3rd party anti-viruses running...
Jul 17, 2017 03:21 PM|Dmitry Sikorsky|LINK
By default, IIS Express doesn't allow connections from network (only local ones), so it is not so easy to make it work. I have tried different configurations of the IIS Express but with no luck. But I have found the solution. You need to run simple proxy
server on your machine. It will redirect requests from network to your local IIS Express and it will work. I will add link soon.
UPD: here is it: https://github.com/icflorescu/iisexpress-proxy
Jul 18, 2017 06:06 AM|Edward Z|LINK
In my option, after developing Web api and web app, we will need to deploy it to IIS or self-host. If you really need to access IIS express address over LAN, I suggest you try suggestion from Dmitry.
Otherwise, I will suggest you publish your web application to IIS, and then access it from LAN by IP address.
Jul 18, 2017 06:18 AM|f.a.rodriguez|LINK