locked
nginx + kestrel IP address issue RRS feed

  • Question

  • User-1362489670 posted

    Hey,

    I'm trying to get this setup on a vps machine I have and have it running but running into one last problem.  I followed the guide @ http://blog.jsinh.in/hosting-asp-net-5-web-application-on-linux/#.VmHB73bnvRY for this setup with a few personalizations.

    The Problem:  When I launch kestrel with the 'dnx . kestrel' command it runs but it listens on ALL IP addresses and not just local.  So it will be hit by going to either domain.com or domain.com:5004.  I'd like it to be limited to domain.com and only listen on local IP.  Is this possible to limit this?  My project.json file has the same commands section as the guide which sets the --server argument to http://localhost:5004

    Thanks

    Friday, December 4, 2015 6:49 PM

Answers

  • User-166373564 posted

    Hi Yazilliclick,

    After you done with your ASP.NET 5 application, run it with following command:

    dnx . kestrel

    By default, kestrel will start listening port 5004 on default network interface (127.0.0.1).

    So your application will be available here: http://127.0.0.1:5004

    More information,you could refer to

    [ASP.NET 5] Production Ready Web Server on Linux. Kestrel + nginx

    http://druss.co/2015/06/asp-net-5-kestrel-nginx-web-server-on-linux/

    Best regards,

    Angie

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 15, 2015 1:38 AM