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

前端 未结 6 1103
日久生厌
日久生厌 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:37

    If you use asp.net core 2.1+,modify config section in appsettings.json.

    "Kestrel": {
      "EndPoints": {
        "Http": {
          "Url": "http://0.0.0.0:5002"
        }
      }
    },
    

提交回复
热议问题