Last active
June 21, 2017 19:58
-
-
Save delwar2016/8007bca981f25a75797062862ff0d114 to your computer and use it in GitHub Desktop.
Installation .Net Code onUbuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.microsoft.com/net/core#linuxubuntu | |
https://stackoverflow.com/questions/37460631/asp-net-core-test-site-cant-be-reached | |
The Kestrel web server defaults to listening on localhost:5000, so if you haven't changed what host it listens on you won't be able to connect to it from a remote machine (or in your case, the host machine). | |
There are several ways that you can configure Kestrel to listen on a different host or port. The simplest implementation would be to add the line .UseUrls("http://0.0.0.0:5000") right after .UseKestrel() in your Main method. This would make the application listen on all available IP addresses using port 5000. | |
Update | |
As svick pointed out below, .UseUrls("http://*:5000") will allow you to use IPv6 addresses as well. | |
https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment