简体   繁体   中英

Can't PsPing to Azure VM

I know that ping'ing into Azure VMs is disabled. The following page shows how to use Sysinternals' PsPing to do a TCP-based ping:

https://blogs.msdn.microsoft.com/mast/2014/06/22/use-port-pings-instead-of-icmp-to-test-azure-vm-connectivity/

Unfortunately, I cannot get PsPing to work from my premises to the Azure VM I have. I created an inbound rule in the Network Security Group through the Azure portal:

在此处输入图片说明

My Azure VM is a Windows 2012 Datacenter server. I added the following rule to its firewall:

在此处输入图片说明

Nevertheless, I can't get PsPing to work when targeting port 80. Incidentally, PsPing to port 3389 (the RDP port) works.

What else should I try?

You should check whether your port is listening. According to your description, it seems that port 80 is not listening on your VM. You could use the following command to check.

netstat -ant|findstr 80

Please ensure the port 80 is listening on tcp, the result should be like below:

 TCP    0.0.0.0:80           0.0.0.0:0              LISTENING       InHost

Also, you should check your NSG. NSG could be associated to a subnet or a VM nic.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM