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:

  1. if give localhost, can access application through http://localhost:5000 , not using ip [http://192.168.1.2:5000, example]. using *, can access through ip.
  2. 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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -