I'm curious about how to set up a server on my own computer that others can access over the internet. I have an extra PC that can run 24/7, and I'm looking to learn the ins and outs of this process. Specifically, I want to host a .NET 10.0.6 backend. What steps do I need to take to make this happen?
5 Answers
Keep in mind that while setting this up is possible, there are risks involved. Port forwarding can expose your system to malicious attacks, so ensure you take the necessary security precautions. If you're not familiar with securing services, be cautious as you step into this space.
Lastly, be aware that many ISPs have policies against running servers on residential connections, and you could risk having your service terminated if you're caught. Just something to think about!
You might also consider setting up a free Cloudflare account combined with Cloudflared, which can help route traffic to your server without needing a public IP.
A straightforward way to get started is to use Tailscale. This software lets you access your server securely without exposing it directly to the internet. It's user-friendly and built on WireGuard, which is a highly regarded VPN technology. I use Tailscale to access my self-hosted services remotely and it's been a game changer for remote development.
For starters, you’ll need to have a public IP address that your home network can utilize and make sure to set up a way for your router to allow external connections. Think about using a dynamic DNS service that can help manage changes to your IP. Just remember with some ISPs, this might be tricky due to CGNAT, especially on mobile data networks.
Yeah, most wired ISPs in the US still provide dynamic public IPs, so it could work for you!

Totally agree! Tailscale is way more reliable than WireGuard, which can be a hassle to get working properly.