Forum Discussion
pepper445
Oct 22, 2019Copper Contributor
Connecting 2 VMs within the same VNET
Hi everybody, I have trouble connecting 2 VMs within the same VNET. On one VM I have installed an ApplicationServer, which is listening on the port 8199. Unfortunately, I cannot reach this App...
- Oct 23, 2019
pepper445 If you have both VM's in the same VNET then yes they should be able to connect to each other. I would start by checking the following.
- NSG on the subnet blocking IP to IP connections
- NSG on the VM NIC
- Windows/Linux local Firewall inside the VM
All 3 will need to be open for a connection.
CraigWilson_
Brass Contributor
pepper445 If you have both VM's in the same VNET then yes they should be able to connect to each other. I would start by checking the following.
- NSG on the subnet blocking IP to IP connections
- NSG on the VM NIC
- Windows/Linux local Firewall inside the VM
All 3 will need to be open for a connection.
Bryan Haslip
Oct 23, 2019Iron Contributor
+1 to the Local Windows/Linux firewall. That is usually the issue I run into with connectivity within the same VNET. By default in Azure the traffic on the same VNET is allowed unless you specifically put rules to prevent that. Like Craig stated this can be at the subnet level NSG or NIC NSG.