0

We have Azure Virtual Machine (VM) has one network interface (NIC) attached to it one NIC and have one or more static public IP associated it.

Reasons for Attaching Multiple static Public IPS

  • Hosting multiple websites or services with different IP addresses on a single server
  • Hosting the Wildcard Entry domains on a single server

Problem with the second IP we cont access the IIS server in Azure Virtual Machine (VM)

How to attach the second IP to access the IIS in VM?

Ramakrishna.p
  • 1,159
  • 12
  • 31
  • 1
    Have you checked azure docs -> https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-multiple-ip-addresses-portal – Raju Joseph May 14 '20 at 10:57

1 Answers1

2

To connect and sign in to a VM you created with multiple private IP addresses. You must manually add all the private IP addresses (including the primary) that you added to the VM. You can get the detailed steps here.

Main steps:

  1. Type ncpa.cpl in the CMD to pen the Network connections window and add the following values manually. enter image description here
  2. Add all the private IP addresses to that VM Advanced TCP/IP settings. enter image description here
  3. Save it then restart your Azure VM, reestablish a RDP connection, then you can see the valid private IP addresses in the ipconfig/all. enter image description here

Then, you should access your websites via the secondary public IP address.

Community
  • 1
  • 1
Nancy
  • 26,865
  • 3
  • 18
  • 34
  • enabled wildcard entry domain but accessing WCF services hosted in IIS getting an issue The protocol binding '*:80:*.xxx.com' is not valid for 'http'. This might be because the port number is out of range. @nancy xiong – Ramakrishna.p May 15 '20 at 07:34
  • I think you can use the same port 80 or 443 for your different websites with a each different private IP address in the binding of protocol type HTTP,HTTPS. For the multiple SSL sites binding, you can refer to [this](https://www.azurecorner.com/hosting-multiple-ssl-sites-in-azure-vms/) – Nancy May 15 '20 at 08:10