I’ve been learning C# with .NET Core and would like to start hosting my projects online, everything I’ve done is locally so far.

I don’t THINK I need a Windows Server host, they seem to be expensive, I think .NET runs ok on a Linux server? But when searching for a .NET hosting provider I see windows everywhere.

I’m hoping to find as low a cost option as possible. It will be mostly for hosting projects to show potential employers / clients etc.

where do you generally host your .NET projects? I’ve seen AWS / Azure / Linode recommended, but I think costs can spiral quickly?

  • bocian67@feddit.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    I think you want to host a website/an webserver: I would recommend to rent a VM server, nothing expensive, 5$ somewhere. Use Linux, any Linux is fine. If you are a beginner, try using Ubuntu since there are plenty tutorials, guides, questions and answers. You can decide if you want to host your service directly on the Maschine using a builded application (search online for .net core build and host) or using a dedicated docker container on your server. Microsoft provides good resources and boilerplates for both. I personally like the docker way cause it requires less installation and maintenance of the VM server, but if you are unfamiliar, maybe try the direct way. Therefore you will need to install some software, basically you will do what the docker container may already provides, but the application has to be builded and executed anyways. If the application is hosted, you probably want something like an nginx or apache2 server to actually host this application on port 80/443 on your Maschine, then it should be available on the IP of your server. Try searching online for a guide how to sett this up. If you want you can also buy a domain and assign some records directing to your server ip, and you will have an domain name with your service on the internet. Congratulations.