You can also use the internal IP address of the machine. i.e. with Windows instances if you do an IP Config you'll see an address to the effect of 10.X.X.X. Instances in the same availability zone can communicate with one another using these IP addresses without leaving the network. This saves dramatically on costs and performance.