Hosting Blazor Server
I've made this little blazor server web app that I need hosting for. Its gonna be low traffic with a single form on there. I want to host it on my personal computer, and I am okay with keeping it on 24/7 while I need it on, and am okay with occasionally updating whatever I need to update whenever my IP address changes. I need to have ssl and use my custom domain I have from namecheap. How difficult is this? I know IIS exists but that is the extent of my knowlege. If its really difficult or annoying to do, what hosting options are out there, that also fit into like a 20$/month budget?
25 Replies
No need for IIS, Kestrel alone should do
Locally, I recommend Cloudflare Tunnel, lets you hook up a domain too
Hosting is much cheaper than $20/hour
Try $5 a month
shoot
wrong time span lol
That's about the average price of a small VPS
the heck is kestrel & cloudflare tunnel
Kestrel is the server your ASP app already runs on
What are your upload speeds on your ISP?
Cloudflare Tunnel is something that routes requests from the domain you have to your current IP, making sure that access is given only to a specific port and specific application
im on ethernet and get consisstent 100> mps up and down
And since it runs on your PC, it also updates any changes to your IP, so it can run 24/7 with no changes
oh sweet
Also, make sure the ISP is fine with it. Some don't allow hosting on their network unless you buy some business plan with them
alright
is there any code changes that need to be made?
or is everything about setting up 'Cloudflare Tunnel` and running the app
See if you can get a static IP from your ISP while your checking wether they allow on your plan.
No, no code changes
You run your app on
localhost:5000
or whatever, then you run the tunnel to redirect from your domain to localhost:5000
i see
Kestral is just a light weight server, IIS is a bit more complicated or lets say involved.
i think i'll use cloudflare tunnel
this whole area of hosting something is sooo vast and difficult for me to comprehend
ive spent hours getting nowhere
wayyyy to much terminology lol
Your big concern will be in security opening up your localhost for serving a site
Not with Tunnel
how worried do i need to be about secuirty?
i don't think there are any bad actors that will use my site and its only gonna be up for 3-4 months
Well according to @ZZZZZZZZZZZZZZZZZZZZZZZZZ Tunnel has you covered. There a bad actors 24/7 out there looking all the time for an opening. But if your only talking for a few months and your local network is closed to public access and this port your going to open like said port 5000 which buy the way I hope pick a little lss common one thatn that.
Your good.
Thank you guys @Angius and @glhays so much!
Its working and was relatively smooth sailing to get it to work!!!!
ive spent so much time in the past fussing w/ this
is ready for public viewing??
can't show unfourtunately since its a local type of deal
as in you will know about where i live lol
gotcha!