How to Host a VPS on Your Windows PC Using Serververse Transit
Turn a spare Windows PC into a real VPS with its own DDoS-protected public IPv4, even behind CGNAT, using a Linux VM and Serververse Transit IP.
Got a spare Windows PC? You can turn it into a real VPS with its own public IPv4 address, even if your internet connection is behind CGNAT like most Jio, Airtel and other home connections in India.
The trick is simple: you run a Linux virtual machine on Windows, and Serververse Transit IP delivers a dedicated, DDoS-protected public IP to that virtual machine through a secure tunnel. No port forwarding, no static IP from your ISP, and no router changes.
This guide walks through the whole setup, from enabling virtualization on Windows to opening your first website or game server to the internet, plus the honest limits of hosting at home.
Why use Serververse Transit IP?
Transit IP is what turns a VM on your PC into a real, reachable server. Here is what you get:
- A dedicated public IPv4 that is yours alone, with every port open
- Works behind CGNAT on Jio, Airtel and other ISPs, with no static IP or port forwarding needed
- DDoS protection included: every Transit IP is filtered by Serververse Shield at no extra cost
- One-command setup: copy the command from the dashboard, paste it on your server, done
- Your own dashboard at labs.serververs.com with bandwidth stats and email alerts
- Mumbai edge on a 1 Gbps uplink with unmetered bandwidth, while your server can be anywhere
- Room to grow: add more IPs or a routed subnet (/29 and larger) when you need them
- From ₹150 a month per IP
How long does it take? Most people finish this guide in 30 to 45 minutes. The Transit IP part itself takes about two minutes; the rest is creating a normal Linux VM.
What you will build
Your Windows PC stays your normal PC. Inside it, a Linux virtual machine (VM) runs your services. That VM opens an outgoing WireGuard tunnel to the Serververse edge in Mumbai, and your Transit IP is routed down that tunnel to it:
Internet
↓
Serververse edge, Mumbai (Serververse Shield DDoS filtering)
↓
WireGuard tunnel (started from your VM, so CGNAT doesn't matter)
↓
Windows PC → Linux VM with your public IPBecause the tunnel starts from your side, it works on almost any connection: home broadband, fibre, office networks and mobile hotspots. Anyone on the internet can reach your VM on its Transit IP, on any port.
What you need
- A Windows 10 or 11 PC that can stay on. 4 CPU cores, 16 GB RAM and an SSD are a comfortable start; a small website runs on far less.
- Virtualization software: Hyper-V on Windows Pro, Enterprise or Education, or VirtualBox or VMware Workstation on Windows Home.
- Ubuntu Linux, which is free. Hyper-V downloads it for you; on Windows Home you download it once.
- A Serververse Transit IP, from ₹150 a month per IP in the Serververse store.
- A stable connection, wired Ethernet if possible. Upload speed matters most, because that's what your visitors download from.
New to virtual machines? That's fine. Follow the steps exactly as written. If you can copy and paste a command, you can do this.
Step 1: Check that virtualization is on
- Press Ctrl + Shift + Esc to open Task Manager.
- Click Performance, then CPU.
- Look for Virtualization: Enabled at the bottom right.
If it says Disabled, restart your PC, open the BIOS (usually by pressing Del or F2 while it starts), and turn on the option called Intel VT-x, Intel Virtualization Technology or SVM Mode (AMD). Save and restart.
Next, find out which Windows you have: press Win + R, type winver and press Enter. If it says Pro, Enterprise or Education, follow Step 2A. If it says Home, follow Step 2B.
Step 2A: Create the VM on Windows Pro (Hyper-V)
- Right-click the Start button and choose Terminal (Admin) or Windows PowerShell (Admin).
- After the restart, open the Start menu and search for Hyper-V Quick Create.
- Pick the newest Ubuntu in the list and click Create Virtual Machine. Windows downloads Ubuntu for you, which takes a few minutes.
- Click Connect, then Start. Follow the Ubuntu setup screens: choose your language, keyboard and time zone, then pick a username and password. Write them down.
Paste this command and press Enter, then restart your PC when it asks:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -AllYour VM is ready. Skip to Step 3.
Step 2B: Create the VM on Windows Home (VirtualBox)
- Download and install VirtualBox from virtualbox.org (click Next through the installer).
- Download Ubuntu Server 24.04 LTS from ubuntu.com/download/server. It's one large .iso file.
- Open VirtualBox and click New. Name it
my-vps, and for ISO Image choose the Ubuntu file you downloaded. - In the next screen, type a username and password (write them down). VirtualBox will install Ubuntu by itself with these.
- Set Memory to 4096 MB, Processors to 2 and Disk to 40 GB, then click Finish.
- Before it finishes installing, open the VM's Settings → Network and change Attached to from NAT to Bridged Adapter. This lets you connect to it from Windows in the next step.
Ubuntu installs on its own in about 10 minutes. When you see a login prompt, log in with your username and password.
Step 3: Connect to the VM from Windows Terminal
The VM window doesn't let you paste long commands easily, so connect to it from Windows instead. This way you can paste everything in this guide.
- Note the first address it prints, for example
192.168.1.42or172.20.10.5. - Type
yesif it asks, then your password. You're now inside your VM from Windows, and right-click pastes commands.
On Windows, open Terminal (or PowerShell) and connect, using your own username and that address:
ssh [email protected]In the VM window, log in and run these two commands. The first installs the remote-login tool, the second shows the VM's address:
sudo apt update && sudo apt install -y openssh-server
hostname -IUpdate Ubuntu once before continuing:
sudo apt update && sudo apt upgrade -yStep 4: Get your Transit IP and connect it
- Buy a Transit IP in the Serververse store.
- Sign in to the Serververse Labs dashboard and open Tunnels.
- Click your tunnel, then Generate command. The command is copied for you. It contains a one-time token, so don't share it.
- In the Terminal window connected to your VM, right-click to paste the command and press Enter. It looks like this:
bash <(curl -fsSL https://labs-api.serververs.com/api/v0.3/provision/install.sh) --token <YOUR_TOKEN>Type your password if asked, and accept the terms. The installer sets up the tunnel and gives your VM its public IP. When it finishes, check it worked:
sudo sv-transit status
curl -4 --interface <YOUR_TRANSIT_IP> ip.meThe second command should print your Transit IP, and the dashboard shows the tunnel as Online. That's it: your VM is now a VPS with its own public IP. Full details are in the Transit setup docs.
Log in to your VPS on its public IP
Your VPS can now be reached from anywhere on the internet using the public IP shown in your Labs dashboard. Try it from Windows Terminal, or from any other computer:
ssh yourname@YOUR_TRANSIT_IPUse the same username and password you created for Ubuntu in Step 2. Transit doesn't create a new login; it's the same machine, now with a public address. Type yes if it asks to trust the server.
From now on you can use this public IP instead of the local address from Step 3, even when you're away from home. Because anyone can now try to log in, do Step 6 next to protect it.
Step 5: Put something online
Your Transit IP is attached to the VM, so services just need to listen on all addresses (0.0.0.0), which is the default for most software. A quick test with Nginx:
sudo apt install -y nginxOpen http://YOUR_TRANSIT_IP from your phone on mobile data. If you see the Nginx welcome page, your Windows PC is now serving the internet. Point a domain's A record at the Transit IP and add HTTPS with Certbot when you're ready.
The same works for a Minecraft or other game server, an API, a Discord bot dashboard or a Git server: install it in the VM, and it's reachable on your Transit IP.
Step 6 (optional, recommended): Secure the VPS
Your VPS already works without this step, so you can skip it while testing. But a public IP gets scanned by bots within minutes, so do it before you leave the VPS running. These commands turn on a simple firewall that only lets in SSH and websites:
sudo apt install -y ufw
sudo ufw allow 22/tcp
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable- Use a strong password, or SSH keys if you know how to set them up (then you can turn off password logins with
PasswordAuthentication noin/etc/ssh/sshd_configandsudo systemctl restart ssh). - Install Fail2ban to automatically block anyone who keeps guessing your password:
sudo apt install -y fail2ban - Only open the ports you use. For game servers, add the game's port (for example
25565/tcpfor Minecraft Java).
Every Transit IP is behind Serververse Shield, our three-layer DDoS filtering, before traffic reaches your PC.
Step 7: Keep it running 24/7
A home VPS is only as reliable as the PC under it. These settings make a big difference:
- Never sleep: Settings → System → Power, set sleep to Never while plugged in.
- Start the VM with Windows: in Hyper-V, set the VM's Automatic Start Action to "Always start this virtual machine automatically". In VirtualBox, use its autostart option or a startup task.
- Control Windows Update restarts: set active hours, or pause updates and install them when you choose.
- Power on after an outage: enable "Restore on AC Power Loss → Power On" in your BIOS, and use a UPS if power cuts are common where you are.
- Back up the VM with Hyper-V checkpoints or VirtualBox snapshots before big changes.
Can I run more than one VPS?
Yes. The simplest way on Windows is one Transit IP per VM: each VM runs its own installer and gets its own public IP. If you want a routed subnet (/29 or larger) shared across many VMs, a dedicated hypervisor like Proxmox VE is the better tool; see the hypervisor guide.
The honest limits of hosting at home
- Bandwidth is your ISP's. Transit gives you a public IP and DDoS protection, not more speed. A connection with 50 Mbps upload can't serve more than about 50 Mbps to visitors.
- Latency includes the Mumbai hop. Players connect to Mumbai and then down the tunnel to you. That's great for most of India, but a host closer to your players is better for competitive games.
- If your PC or internet goes down, so does the VPS. Home setups have no backup power feeds or redundant uplinks.
- Tunnel overhead: WireGuard uses a little CPU and slightly reduces packet size. On a modern PC this is barely noticeable.
That makes a home VPS ideal for learning, homelabs, development, side projects and small community servers. For customer-facing production work, a datacenter Serververse VPS gives you redundant power and network, and you can move your project over when it outgrows your desk.
Troubleshooting
SSH dropped while installing. A route replaced the default gateway. Log in from the VM window in Hyper-V or VirtualBox instead, check ip route, and re-run the installer with a freshly generated command.
"Token invalid or expired". Tokens are single-use and time-limited. Click Generate command again in the dashboard.
The public IP doesn't respond. Wait 1–2 minutes for the edge to update, then check sudo sv-transit status and wg show, and confirm your service is listening with ss -tulpn and that UFW allows the port.
Tunnel unstable. Don't run Tailscale on the same VM; it conflicts with Transit.
Slow speeds. Test your home upload speed first, then check CPU use in the VM and on Windows. Wi-Fi often causes drops and slowdowns, so switch to Ethernet if you can.
FAQ
Can I host a VPS on my Windows PC?
Yes. Run a Linux virtual machine with Hyper-V, VirtualBox or VMware, then give it a public IP with Serververse Transit IP. The VM then works like a normal VPS that anyone on the internet can reach.
Do I need a static IP from my ISP?
No. Transit IP delivers a dedicated public IPv4 through a tunnel that starts from your machine, so it works without a static IP, without port forwarding and even behind CGNAT.
Does it work on Jio or Airtel connections behind CGNAT?
Yes. Because the tunnel is opened from your side, CGNAT on Jio, Airtel and other ISPs doesn't block it.
Can I run Serververse Transit directly on Windows?
Yes. Serververse Transit also has a one-command PowerShell installer that adds a public IP to Windows itself, which suits apps that run on Windows. For a VPS, use the Linux VM method in this guide so your server stays separate from your everyday Windows setup.
Should I use Hyper-V or VirtualBox?
Use Hyper-V if you have Windows Pro, Enterprise or Education: it is built in and can start your VPS automatically with Windows. On Windows Home, use VirtualBox or VMware Workstation, which are free for personal use.
How many VPS can I run on one PC?
As many as your CPU, RAM and disk allow. Give each VPS its own Transit IP and run the installer inside each one. A PC with 16 GB of RAM can comfortably run three or four small VPS.
How much does it cost?
Transit IP starts at ₹150 a month per IP, with DDoS protection included. If you only need one game port rather than a full IP, Transit Play starts at ₹30 a month per port.
Is my home connection exposed?
Visitors connect to your Transit IP at the Serververse edge, not to your home IP, and traffic is filtered by Serververse Shield before it reaches you.
Final thoughts
A Windows PC, a Linux VM and a Transit IP are all it takes to run your own internet-facing VPS: a real public IPv4, DDoS protection and every port open, on hardware you already own. It's one of the best ways to learn how hosting works, and a cheap home for side projects and small servers.
Ready to try it? Get a Transit IP, or read more about Serververse Transit.