An Azure service that is used to provision Windows and Linux virtual machines.
Hi Madhusudan,
After investigating the RDP connectivity issue, here’s what we found and recommend for connecting to your Azure VM via the secondary public IP and private IP.
When you add a second public IP to your VM’s network interface, the VM needs to “know” about the corresponding secondary private IP. This requires manually adding the secondary private IP inside the VM’s network settings. Without this, RDP connections to the secondary public IP won’t work because the VM isn’t listening on that address.
Could you please follow the below steps:
- Use the primary IP to log into the VM.
- Open the network connections settings (
ncpa.cpl), find your network adapter. - Go to Properties → IPv4 → Advanced → IP Addresses.
- Add the secondary private IP address and subnet mask.
- Confirm the changes and verify with
ipconfigthat the new IP appears. - Ensure your firewall and Network Security Group (NSG) allow RDP (port 3389) traffic. Note: In below path enter the primary Ip details from ipconfig all and DNS server (168.63.129.16 default)
And, in advanced add the secondary private Ip address.
After this, you should be able to connect via RDP using the secondary public IP.
Note:
Secondary Private IP: Your computer must be on the same Azure VNet or connected via VPN to access the VM.
Secondary Public IP: Can be accessed from anywhere on the internet, just like the primary IP.
Please refer below official documentations:
I have reproduced the issue it was worked for me. Hope this helps. Please let me know if you have any queries.