Deploy a .NET Core application on Hostinger
You can deploy a .NET Core 9 (ASP.NET Core) application on Hostinger — but only using their Linux VPS (not shared or Windows hosting). Here's how it works and what plan you'd need:
✅ Supported?
-
Hostinger doesn’t support classic ASP.NET on Linux. Instead, you deploy ASP.NET Core apps on their Ubuntu 22.04 VPS via terminal and reverse-proxy (NGINX) (support.hostinger.com).
🛠 Recommended VPS Plans for .NET Core 9
Hostinger offers four KVM-based VPS tiers optimized for ASP.NET Core deployments (hostinger.in):
Plan | vCPU | RAM | NVMe SSD | Bandwidth | Price (India, 24‑mo) |
---|---|---|---|---|---|
KVM 1 | 1 | 4 GB | 50 GB | 4 TB | ₹429/month (renews ₹699) |
KVM 2 | 2 | 8 GB | 100 GB | 8 TB | ₹599/month (renews ₹949) |
KVM 4 | 4 | 16 GB | 200 GB | 16 TB | ₹799/month (renews ₹1,999) |
KVM 8 | 8 | 32 GB | 400 GB | 32 TB | ₹1,699/month (renews ₹3,999) |
(Prices from Hostinger India, 24‑month term) (hostinger.in)
⚙ Which Plan Should You Choose?
-
Small/personal apps → KVM 1 (1 vCPU, 4 GB RAM) is enough.
-
Medium apps or light traffic e‑commerce → KVM 2.
-
Production-grade / higher traffic → KVM 4+ for better performance and scalability.
Tip: VPSs can be upgraded anytime, giving you future flexibility.
🚀 Deployment Overview
-
Buy a Linux VPS with ASP.NET (Ubuntu 22.04).
-
SSH into the server.
-
Confirm .NET version with
dotnet --version
. -
Publish your app:
dotnet publish -c Release
. -
Create a
systemd
service to run your.dll
. -
Install/configure NGINX as a reverse proxy (port 80/443 → localhost:5000).
-
Obtain SSL via Certbot.
-
Enable and start your service. (hostinger.com, reddit.com, support.hostinger.com, reddit.com)
✅ Pros & Cons
✅ Pros:
-
Full control (SSH access, install anything).
-
Affordable pricing.
-
Modern Linux hosting for .NET Core.
⚠️ Cons:
-
No Windows/IIS support — you’re on Linux.
-
Requires setup experience — command-line, NGINX, SSL, systemd.
-
Limited VPS support — Hostinger covers VM issues, but you self-manage your stack (reddit.com, support.hostinger.com, evbn.org, hostinger.in).
🔧 Alternatives
If you prefer a more managed or Windows-based environment:
-
Azure App Service (Linux/Windows): fully managed, starts small/free .
-
DigitalOcean / Linode: similar Linux VPS but more DIY (reddit.com).
-
SmarterASP.NET, FreshRoastedHosting: budget Windows/.NET hosting with IIS (reddit.com).
You can host a .NET Core 9 app on Hostinger — just pick a VPS (KVM) plan (start at ₹429/m), deploy on Ubuntu, configure NGINX & systemd. It’s cost-effective and flexible — but you’ll manage the server yourself.
Comments
Post a Comment