I've deployed my c#, asp.net 5, mvc 6 app to a windows 2008 server. I've fired up dnx web and it is listening to port 5000 and works fine when accessing from local computer.
How do I get it to listen to non-localhost requests?
P.S. This question is not a duplicate of this...it refers to asp.net pre RC1 when hosting.ini actually had an .ini format. Now, it's JSON and I can't find any documentation on what should actually be in it.
P.P.S. The real solution is in the non-accepted answer to the linked question, with a massive caveat. Steps:
- Change your project.json per the linked answer.
- Publish your project to your server.
- On the server, go to ...\approot\src\YourProject folder and open a command window there.
- Run dnx web - it will fail
- Run dnu restore
- Run 'dnu build`
- Run 'dnx web` - the web server should now start fine
It applied to the early versions of the .NET Core. The question and the answers certainly aren't applicable for the current versions of the framework (e.g. 2.x, 3.x)
Источник: https://stackoverflow.com/questions/342 ... t-requests
Мобильная версия