❔ Hosting a server
I am currently hosting a server on local network, the server is console app running c#. I want to be able to connect from elsewhere. Whats the best approach to this? I have in mind hosting somewhere or setting up my wifi with some portforwarding stuff?
22 Replies
Im not exactly sure on the logistics of these ideas
The safest way would be renting any random Linux VPS
$vps
Cheap recommendations
https://www.scaleway.com https://www.digitalocean.com
https://www.linode.com https://www.ovh.co.uk
https://www.time4vps.eu https://www.vultr.com
https://www.hetzner.com https://contabo.com
Always free options
https://cloud.google.com/free
https://www.oracle.com/cloud/free/#always-free
am i able to run C# code there in the same way it runs locally?
Assuming you used modern .NET that's cross-platform, yes
.net framework...
Well shit
sucks to be me
That means you'd need to pay premium for Windows hosting
how much roughly
https://www.ovhcloud.com/en/vps/os/vps-windows/
OVH has it for $7/mo
that aint too bad, only need it for a single month
proof of concept kind of work
Could also try Ngrok or some such
and i can simply upload my source code here and run it somehow?
Honestly, no clue
simply might be an understatement
Been years since I worked with Framework last
And never needed to host it anywhere
So you'd need to ask some resident graybeards who still remember times when .NET couldn't natively run on Linux
the other option is to run it locally but on my public IP, would need to setup some traffic routing/port forwarding on my wifi for that i believe
Ngrok
ok, ill hunt around for some
ngrok is for hosting locally but
public access?
dude ngrok is perfect, thanks
Yep, lets you expose your stuff to the wider internet
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.
Was this issue resolved? If so, run /close
- otherwise I will mark this as stale and this post will be archived until there is new activity.