How do I get the kestrel web server to listen to non-localhost requests?

前端 未结 6 1104
日久生厌
日久生厌 2020-11-27 10:39

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

6条回答
  •  无人及你
    2020-11-27 11:30

    For AspNetCore 3.1+ just add the following line in the file appsettings.json:

    "Urls": "http://*:80"
    

提交回复
热议问题