I have an Azure IaaS Windows 2012R2 VM which is hosting a test website. The site is accessible externally by the hostname.
What do I need to do to enable access to that same site by IP address?
When I try to ping the IP address I get the message:
Request timed out.
When I try to ping the working hostname for the site, I get
Pinging myhostname.com [nnn.nnn.nnn.nnn] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
On the VM I tried to enable File and Printer Sharing (Echo Request ICMPv4 - In)
. I also followed these steps to enable IP and Domain Restrictions
, though I'm not sure that's necessary?
I also tried disabling the windows firewall and this did not seem to do anything. I have re-started the VM.
Best Answer
Azure's load balancer does not support PING (ICMP), which is why you cannot ping your VM's IP address. You can use tcp-based ping tools to achieve this. Note: You will be able to ping between VMs internally (via each VM's internal IP address), assuming they're deployed into the same vnet / cloud service.
You can absolutely access your VM by IP address though.