How to allow RDP connection via Public IP for Azure VM?

Major IT 0 Reputation points
2025-03-03T20:38:56.5266667+00:00

The company upgraded to fiber which changed their Public IP address. There was a rule or exception made before to allow RDP to the Azure VM without using a VPN.

How can I allow this same connection?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,018 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Marcin Policht 49,715 Reputation points MVP Volunteer Moderator
    2025-03-03T20:50:33.6166667+00:00

    Follow https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/troubleshoot-rdp-nsg-problem


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  3. Marcin Policht 49,715 Reputation points MVP Volunteer Moderator
    2025-03-08T21:26:17.48+00:00

    Follow https://www.waza.co.za/2017/06/19/zerotier-and-azure-sdn-at-its-best-with-quick-and-easy-point-to-site-vpn/


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  4. Venkat V 2,545 Reputation points Microsoft External Staff Moderator
    2025-03-18T06:44:24.6866667+00:00

    Hi @Major IT

    How to allow RDP connection via Public IP for Azure VM?

    If the company upgraded to fiber and their public IP address changed, causing you to be unable to connect to the VM via RDP, this may be due to the following causes:

    1. Update the NSG Rules

    If you had previously allowed RDP (port 3389) from a specific public IP address, the upgrade may have resulted in a new public IP address for the company. You may need to add the new public IP address in the inbound rule of the NSG by following these steps.

    Go to Azure Portal > Navigate to the Network Security Group associated with the VM > Edit the inbound security rules to allow RDP (port 3389) from the new public IP address:

    • Source IP: The new public IP address of the company.
    • Destination Port: 3389.
    • Protocol: TCP.
    • Action: Allow."

    enter image description here

    1. Since the company uses ZeroTier VPN to access the VM, it's likely that the VPN is being used to ensure secure, private access to the Azure VM. The ZeroTier network should have the appropriate routes configured to access the VM.

    For more details please follow the ZeroTier network

    I hope this helps to resolve your query.


    I really appreciate your feedback. It’s valuable to us. Please click Accept Answer on this post to assist other community members facing similar issues in finding the correct solution.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.