0

How should I create and configure Azure virtual machines to allow VM-to-VM connections?

  • It is possible to connect using the private ip?
  • Do I need a Azure Virtual Network?

Basically I need to run some applications on each VM that need to talk to the other instances on the same azure subscription using TCP connection.

For now the only solution that I have found is to add the required endpoints and access the virtual machine using its public ip. There isn't a way to connect using the private ip? In this way it should be faster and with slow latency right?

thanks

2 Answers 2

1

VMs in the same Cloud Service can connect to each-other out of the box. You can connect to a VM in the same Cloud Service via its hostname.

Please see here for a detailed description.

So all you need to do is to make sure that your VMs are in the same Cloud Service.

1
  • 1
    Even when in the same Cloud Service, by default the VMs won't be in the same private subnet, so you'll have to allow the connections in the VM firewall's public profile. Commented Feb 22, 2013 at 22:14
1

It is possible to connect using the private ip?

Yes, machines should be in the same Virtual Network

Do I need a Azure Virtual Network?

Yes

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.