Setting up IIS Express to accept local connections on visual studio 2012

江枫思渺然 提交于 2019-12-13 06:01:49

问题


I made a web service with MVC4 and running on localhost with IIS express seems fine.
But I need to access from outside, so I'll have to use a local IP.

I've found out that IIS Express only accepts incoming requests with localhost specification in the header.

I've tried to go to the "applicationhost.config" and change the

binding protocol="http" bindingInformation="*:4019:localhost"

to this:

 binding protocol="http" bindingInformation="*:4019:10.250.38.85"      

but now visual studio wont let me run IIS Express saying its unable to launch.

I've also been wandering around IIS manager trying to attach one of the websites to the project without success.

What am I forgetting?

I'll also need this to use SSL and not sure how to configure

I've tried to edit IIS Express applicationhost.config and change binding protocol="http" to https but then vs2012 couldnt even load the project saying it couldnt create the virtual directory

Is there a way to change IIS express to normal IIS 7 so I can use the manager?


回答1:


You can assign IP in the iis as follows:

Then you need to publish your website into this iis website. it will work....



来源:https://stackoverflow.com/questions/15087964/setting-up-iis-express-to-accept-local-connections-on-visual-studio-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!