How to establish communication between my Azure VM network and my laptop network?

PAGO Analytics 20 Reputation points
2025-02-05T06:09:56.11+00:00

I have an Azure Virtual Machine configured with two NICs:

  • NIC 1: Public IP: 20.197.47.120, Private IP: 192.168.1.4
  • NIC 2: Public IP: 4.213.73.96, Private IP: 192.168.1.100 (set to static, also used as the DNS server)

My laptop network details:

  • IPv4 Address: 192.168.1.13
  • Subnet Mask: 255.255.255.0
  • DNS Server: 192.168.1.1
  • Public IP: 106.222.234.27

I am trying to establish communication between my laptop and the Azure VM, ensuring that my laptop can resolve domain services and access the VM using the configured static private IP (192.168.1.100). I want to set up a secure connection, possibly through a VPN or routing configuration.

  • What is the best approach to achieve this connection?
  • Do I need to configure a VPN (like Azure Point-to-Site or Site-to-Site)?
  • Are there any additional DNS or gateway settings required for successful communication?

Any guidance on how to configure this properly would be greatly appreciated!

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
726 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,360 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,642 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,637 questions
Azure NAT Gateway
Azure NAT Gateway
NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
50 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 117.7K Reputation points MVP
    2025-02-05T07:40:23.8033333+00:00

    Hi @PAGO Analytics ,

    I would recommend an Azure VPN Gateway with Point2Site or Site2Site configuration depending on your requirements. Some more details you will find here: What is Azure VPN Gateway?

    If you don't need any public connections from other computer to the Azure VMs you should remove the public IP address to prevent any access from internet.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Rohith Vinnakota 2,690 Reputation points Microsoft Vendor
    2025-02-05T07:54:26.62+00:00

    Hi @PAGO Analytics,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    What is the best approach to achieve this connection?

    You can achieve this using Point-to-Site Connection.Point-to-Site VPN allows your laptop to securely connect to the Azure Virtual Network.

    Do I need to configure a VPN (like Azure Point-to-Site or Site-to-Site)?

    Configure Point-to-site.A Point-to-Site (P2S) VPN gateway connection lets you create a secure connection to your virtual network from an individual client computer.

    Similar question: https://learn.microsoft.com/en-us/answers/questions/2088653/i-have-created-vpn-gateway-and-i-want-to-provide-v

    Refer this how to configure Point-to-site:

    https://learn.microsoft.com/en-us/azure/vpn-gateway/point-to-site-certificate-gateway

    After establishing the connection, please attempt to ping the VMs on both sides.

    Are there any additional DNS or gateway settings required for successful communication?

    After establishing the connection, could you perform a nslookup <FQDN> on the domains? If you are using the private endpoint, please check whether it resolves to the private endpoint or not it give the private ip of the domain.

    Kindly let us know if this helps or you need further assistance on this issue.

    1 person found this answer helpful.
    0 comments No comments

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.