How to Configure a Static IP on Your Windows VPS
By default, many VPS providers assign a static (unchanging) public IP address to your Windows VPS. However, within the VPS itself, the internal IP might still be dynamic—changing with reboots or network resets. Assigning a static internal IP can be useful for:
- Custom DNS setups
- Internal app configurations
- Local firewalls or routing rules
This guide walks you through setting a static IP inside your Windows VPS.
🔹 Before You Begin
Make sure you have:
- Admin access to your Windows VPS
- Your current IP configuration details (so you don’t accidentally break your connection)
- Access to your VPS through a web-based console, in case RDP stops working during the change
⚠️ Changing the IP improperly can cause loss of connectivity. Always note your current settings first!
🔸 Step 1: Check Your Current IP Settings
You’ll need your current:
- IP address
- Subnet mask
- Default gateway
- DNS servers
✅ To find them:
- Open Command Prompt and run:
ipconfig /all
- Note down:
- IPv4 Address
- Subnet Mask
- Default Gateway
- DNS Servers
🔸 Step 2: Open Network Settings
- Press
Win + R
, typencpa.cpl
, and press Enter. - Right-click your active network adapter (usually called “Ethernet”) and select Properties.
- In the list, scroll down and select Internet Protocol Version 4 (TCP/IPv4).
- Click the Properties button.
🔸 Step 3: Assign a Static IP Address
- Select:
Use the following IP address
- Enter the following using the values from Step 1:
- IP address (same as your current IP)
- Subnet mask (e.g., 255.255.255.0)
- Default gateway (from your VPS provider or current settings)
- Select:
Use the following DNS server addresses
- Preferred DNS: You can use Google’s (8.8.8.8) or your VPS provider’s
- Alternate DNS: (Optional) e.g., 1.1.1.1 (Cloudflare) or 8.8.4.4
- Click OK, then Close.
🔁 Optional: Reboot the VPS
Sometimes, the settings don’t fully apply until you reboot the system. You can do this safely after confirming you still have RDP access.
🛠️ Troubleshooting Tips
- Lost connection after changing IP?
- Use your hosting provider’s VNC/console access to fix the settings.
- Wrong gateway or subnet?
- Double-check your original settings with
ipconfig /all
.
- Double-check your original settings with
- DNS not resolving?
- Try setting DNS to 8.8.8.8 and 1.1.1.1 temporarily.
🔐 Security Tip
If you’ve changed to a static IP, consider setting up firewall rules that only allow access from known IPs or specific ports.
Assigning a static IP on your Windows VPS helps maintain consistent access and supports custom networking setups. Just make sure you back up your current settings and test connectivity after applying the changes.