Just did a quick test that seems to work. Create a host.json file next to the project.json file.
hosting.json:
{ "server.urls": "http://localhost:5000;http://192.168.1.4:5000" }
project.json:
"commands": { "web": "Microsoft.AspNet.Server.Kestrel --config hosting.json" },
At the command prompt, just run dnx web , the output is:
Hosting environment: Production Now listening on: http://localhost:5000 Now listening on: http://192.168.1.4:5000 Application started. Press Ctrl+C to shut down.
You will receive a firwall invitation, accept it and tadaaa !! You can access the site from the local network and localhost.
Seb Mar 19 '16 at 11:35 2016-03-19 11:35
source share