AWS EC2 instance cannot ping certain address

amazon-web-servicesnetworkingping

I have encountered strange problem when I was deploying our application to AWS (more precisely Elastic Beanstalk which is based on EC2). We are using certain VOIP provided whose address is vh1107.ipex.cz. Application works normally on localhost (even on different hosting) however on AWS it fails to connect to this address. I also cannot ping it when I log to the instance, however it can ping any other internet address I tried. So what is wrong here? Could this address be on some AWS blacklist?

EDIT

Sorry I've put my question wrongly. I know difference between HTTP and ICMP, the thing is however I can ping it from my own machine so it means that server listens to ICMP and problem is in the AWS. Same goes for any HTTP client, e.g. curl vh1107.ipex.cz/calls -v runs fine on my machine but request hangs on AWS. Our former hosting can reach the server as well.

Best Answer

That server doesn't respond to ping requests. Ping uses ICMP which many servers block at the firewall.

A bit more background: ping runs over ICMP (read this article), which is different and separate from the TCP protocol that http/https run over.

There's generally very little to gain for a website to allow people to ping it, and every way you allow users to access your website or servers introduces risk. I don't allow ICMP into my servers, other than from one specified IP address. Because they're separate protocols it's easy to block ICMP at the firewall. This is why you can't ping some servers.

Updated

Based on our conversation in comments, I can verify that the server is rejecting some connections based on location. From the Czech Republic I can connect (though the URL is invalid), from New Zealand or the USA I can't connect.

I think you'll need a different provider, a VPN, or co-operation from the provider.

Related Topic