C
C#2y ago
Boggo

❔ 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
Boggo
BoggoOP2y ago
Im not exactly sure on the logistics of these ideas
Angius
Angius2y ago
The safest way would be renting any random Linux VPS $vps
Boggo
BoggoOP2y ago
am i able to run C# code there in the same way it runs locally?
Angius
Angius2y ago
Assuming you used modern .NET that's cross-platform, yes
Boggo
BoggoOP2y ago
.net framework...
Angius
Angius2y ago
Well shit
Boggo
BoggoOP2y ago
sucks to be me
Angius
Angius2y ago
That means you'd need to pay premium for Windows hosting
Boggo
BoggoOP2y ago
how much roughly
Boggo
BoggoOP2y ago
that aint too bad, only need it for a single month proof of concept kind of work
Angius
Angius2y ago
Could also try Ngrok or some such
Boggo
BoggoOP2y ago
and i can simply upload my source code here and run it somehow?
Angius
Angius2y ago
Honestly, no clue
Boggo
BoggoOP2y ago
simply might be an understatement
Angius
Angius2y ago
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
Boggo
BoggoOP2y ago
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
Angius
Angius2y ago
Ngrok
Boggo
BoggoOP2y ago
ok, ill hunt around for some ngrok is for hosting locally but public access? dude ngrok is perfect, thanks
Angius
Angius2y ago
Yep, lets you expose your stuff to the wider internet
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server