Can't ping 8.8.8.8 from Virtual Machine in Azure

3

I created a Virtual Machine in Windows Azure (Windows Server 2008).

Accesed using remote desktop connection and opened cmd.

Then tried to ping 8.8.8.8 (which I can from my computer) but I got:

Pinging 8.8.8.8 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 8.8.8.8:

Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

I do have internet access, because I can navigate using iexplorer to google.com or facebook.com (examples)

Question: What is happening that I cant ping?

I tried this and it didnt work:

http://patrickyong.wordpress.com/2008/05/04/enable-ping-replies-on-windows-server-2008/

sports

Posted 2013-06-24T01:38:54.080

Reputation: 151

Can you ping other sites? – cutrightjm – 2013-06-24T01:45:40.363

Nope, tried google.com and it resolved the ip but got same result – sports – 2013-06-24T01:49:00.923

Answers

4

ICMP is not routed by Windows Azure's load balancer / firewall, according to this MSDN forum thread. I'm fairly sure this is correct, as I've seen other posts about this, and I just tried as well (producing the same time-out messages). Ping will work between instances in the same deployment, assuming you've enabled inbound ICMP.

Someone on the above-mentioned thread mentioned using Mark Russinovich's PsPing which supports tcp-based latency testing against a specific port. While it's not ICMP, it at least provides an alternative.

Also: If you create a VPN connection between Windows Azure and your on-premises network, ICMP should work fine over the VPN connection.

David Makogon

Posted 2013-06-24T01:38:54.080

Reputation: 334

0

Voted +1 to @David-Makaogon's answer as ICMP is blocked by the Azure Firewall. Adding to the answer, you don't need any other utility, If one has Windows Server 2012 R2 running on the Azure. One can make use of Test-NetConnection cmdlet in Windows PowerShell.

A good read on using the cmdlet can be found -> here

Below is a quick demo of how I ran it on a VM :

[dexter.cloudapp.net]: PS C:\> Test-NetConnection -ComputerName google.com -Port 80                   

WARNING: Ping to google.com failed -- Status: TimedOut

ComputerName : google.com
RemoteAddress : 74.125.68.100
RemotePort : 80
InterfaceAlias : Ethernet 17
SourceAddress : 192.168.0.70
PingSucceeded : False
PingReplyDetails (RTT) : 0 ms
TcpTestSucceeded : True

Dexter

Posted 2013-06-24T01:38:54.080

Reputation: 51