NewCode CLOUD — 20% off your first month on all cloud VPSClaim

How to Add Additional IP Addresses on Windows Server

Additional IP addresses let one Windows server host several SSL sites with dedicated IPs, separate services by address, run applications that need their own IP, or keep different projects from sharing one address. Windows supports many IPs on one network adapter; adding them takes a few minutes, but a small mistake — especially with the gateway or the primary address — can cut off your Remote Desktop connection. This guide shows the safe way.

For Linux, see adding IP addresses on Linux.

Before you start

  1. Get the details for each new IP from your client area or the provisioning email: IP address, subnet mask (prefix) and gateway. Additional IPs are often in the same subnet as the main IP, but not always — use exactly what you were given.
  2. Note the current configuration:
Get-NetIPConfiguration
Get-NetIPAddress -AddressFamily IPv4 | Select InterfaceAlias, IPAddress, PrefixLength
Get-NetRoute -DestinationPrefix 0.0.0.0/0
  1. Have the VNC console ready in your control panel. If RDP drops, the console still works.
  2. Do not change the main IP or gateway unless instructed. Only add.

Method 1: Network settings (GUI)

  1. Control Panel → Network and Sharing Center → Change adapter settings (or run ncpa.cpl).
  2. Right-click the network adapter → Properties → Internet Protocol Version 4 (TCP/IPv4) → Properties.
  3. If “Obtain an IP address automatically” is selected, switch to Use the following IP address and enter the current main IP, mask, gateway and DNS exactly as shown by ipconfig /all. Double-check before continuing.
  4. Click Advanced… → under IP addresses click Add and enter each additional IP and its subnet mask.
  5. Do not add another default gateway if the new IPs are in the same subnet as the main IP. If they are in a different subnet, follow the provider’s instructions — usually still only one default gateway on the adapter.
  6. OK → OK → Close.

Method 2: PowerShell

$if = (Get-NetIPConfiguration | Where-Object { $_.IPv4DefaultGateway }).InterfaceAlias
New-NetIPAddress -InterfaceAlias $if -IPAddress 203.0.113.11 -PrefixLength 24 -SkipAsSource $true
New-NetIPAddress -InterfaceAlias $if -IPAddress 203.0.113.12 -PrefixLength 24 -SkipAsSource $true
Get-NetIPAddress -InterfaceAlias $if -AddressFamily IPv4

-PrefixLength 24 corresponds to 255.255.255.0; use the prefix for your subnet (/26 = 255.255.255.192, /29 = 255.255.255.248, and so on).

Why SkipAsSource matters

When a server has several IPs, Windows chooses which one to use for outgoing connections (to APIs, mail servers, updates). Without SkipAsSource, it may pick one of the new addresses — which can break licence checks, API allow-lists or mail reputation that expect your main IP. -SkipAsSource $true keeps the main IP as the source for outgoing traffic while the extra IPs still accept incoming connections.

For addresses added through the GUI, set it afterwards:

Set-NetIPAddress -IPAddress 203.0.113.11 -SkipAsSource $true

Check with:

Get-NetIPAddress -AddressFamily IPv4 | Select IPAddress, SkipAsSource

Method 3: netsh (older systems and scripts)

netsh interface ipv4 add address "Ethernet" 203.0.113.11 255.255.255.0 skipassource=true
netsh interface ipv4 show addresses

Replace "Ethernet" with your adapter name from netsh interface show interface.

Test each IP

From your own computer (not the server):

ping 203.0.113.11
Test-NetConnection 203.0.113.11 -Port 3389

Windows Firewall blocks ping by default. To allow it for testing:

Enable-NetFirewallRule -DisplayName "File and Printer Sharing (Echo Request - ICMPv4-In)"

From the server, test that it can send traffic from a specific IP:

curl.exe --interface 203.0.113.11 https://ifconfig.me

It should print the IP you specified.

Use the IPs: IIS bindings

In IIS Manager, edit a site’s Bindings and choose the specific IP instead of “All Unassigned”. With several HTTPS sites, enable Require Server Name Indication or give each its own IP. See hosting a website with IIS.

Other applications (game servers, trading platforms, proxies) usually have a “bind address” or “listen IP” setting — set it to the IP that application should use.

Firewall rules per IP

You can limit a firewall rule to a specific local address:

New-NetFirewallRule -DisplayName "App on .12" -Direction Inbound -Protocol TCP -LocalPort 8443 -LocalAddress 203.0.113.12 -Action Allow

Troubleshooting

Problem Likely cause Fix
RDP disconnected after the change Main IP/gateway typed wrongly when switching from DHCP to static Fix it from the VNC console
New IP does not respond Wrong mask, typo, IP not yet routed to your server, or firewall blocking ICMP Check Get-NetIPAddress; test with a TCP port; contact support if it still fails
Outgoing traffic uses a new IP SkipAsSource not set Set-NetIPAddress -SkipAsSource $true
“The object already exists” IP already configured Get-NetIPAddress
IP conflict warning Address used elsewhere Use only IPs assigned to your server

Removing an IP

Remove-NetIPAddress -IPAddress 203.0.113.12 -Confirm:$false

Getting more IPs

Most Server.HK dedicated servers, and Hong Kong and US VPS, support additional IPv4 addresses (Japan VPS does not); the options and prices are shown on each product page and when you order. For many sites on separate IPs, see SEO hosting.