this post was submitted on 25 Jun 2023
6 points (100.0% liked)

Programming

13376 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 2 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] bocian67@feddit.de 2 points 1 year 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.