# Connect two VNETS in Azure

There are ways to connect two Virtual Networks in Azure:

1. VPN Gateway
    
2. VNET Peering, with a click of a button.
    
    1. Regional Peering
        
    2. Global Peering
        

VNET space must be **non overlapping**

**VNET peering** is completely private.

VPC peering has **no cost** for all availability zones!

VPC peering allows you to use the **low latency** of Azure networks!

Demo:

* Simple listener and receiver.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707966733292/7f5060a3-204a-4361-a777-0bba67d3ae5e.png align="center")

We have achieved latency of 142ms!! Idc if its fast or slow, but peering is very fast!

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707966872949/9e9f6f77-a546-4c30-8561-3e8f1caf8e24.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707966911704/a62984d5-fc9e-485c-8c43-1338245d7f44.png align="center")

NUTTCP = for 10 usd a month VM we can get a throughput of 156MBS per second

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1707967308556/0813e487-6343-4516-8c13-36c492c4d7e0.png align="center")
