setting "server name" when using kestrel with dotnet core -
i writing app using asp.net mvc right runs against microsoft's kestrel server. works fine, , pass values @ startup using hosting.json file defined follows;
{ "server": "microsoft.aspnet.server.kestrel", "server.urls": "http://localhost:5000;https://localhost:5001" } is there way give "server" name, isn't reporting localhost or undefined time?
please replace localhost *. give below benefits:
- if give
localhost, can access application throughhttp://localhost:5000, not using ip [http://192.168.1.2:5000, example]. using*, can access through ip. - you can connect server other pcs or mobile devices.
a few days back, had same requirements yours , got solution from: docs.asp.net. [the comments section hidden default. please click show comments , search localhost.]
tip 1: view application mobile device, please check: viewing localhost website mobile device.
tip 2: question , answer has been posted here: compiling asp.net 5 web application , generating dll files.
Comments
Post a Comment