Home > Uncategorized > Run #ASP.NET on #Ubuntu using .NET Core

Run #ASP.NET on #Ubuntu using .NET Core

Screenshot 2018-11-27 at 10.54.01

Yes, it’s possible to host ASP.NET on linux, and there are plenty of great tutorials out there, and this is just a quick post with a few of my tips thrown in…

I followed the tutorial at https://www.microsoft.com/net/learn/web/aspnet-hello-world-tutorial, using a EC2 instance from Amazon.

However, at the point where it says, “point a browser at https://localhost:5001” I had to get a bit inventive,

So, I opened up port 5001 in security settings, and I created a release build

dotnet build –configuration Release

Navigated to the “publish” folder and ran this command to have the app listen on all hosts, not just localhost.

dotnet myWebAppp.dll –urls https://0.0.0.0:5001

Then from my mac, I could navigate to https://%5BIP%5D:5001, and dismissed the bad cert warning.

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: