I can't ping my ec2 server

0

I spinned up windows server on amazon ec2 and i cannot ping the server. all security groups were enabled, which is smb, http, rdp and all icmp ipv4 enabled. i ping other servers from my local machine but not the server created from my aws account on ec2 even when all necessary security groups has been enabled. do i have an issue in spinning up a server with my account ?

1 Answer
1
Accepted Answer

A few things.

1.) Are you trying to hit the server from the internet? If so you could open up ICMP to your IP (Temporarily). Also, you would need to put the instance on a public subnet to ping it (In the case of the internet). If you wanted to access other services like http/https you could also put the instance in a target group and attach it to a load balancer. That would allow you to keep your instance on a private subnet while your ALB would be on a public subnet. Keeping instances private is generally a good idea for production workloads.

2.) Are you trying to hit the EC2 instance from a VPN? If so you would want to check the VPN tunnel status and any possible ACL's on the network side.

Evan
answered a year ago
  • i am accessing from the internet. I have enabled all icmp4 and still i cannot ping. i don't think my local desktop is the issue because I can ping other servers from that same desktop. pls how do I put the instance on a public subnet because i used the default subnet provided by aws

  • Take a look at this guide. https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Scenario2.html

    Also, check your security group to make sure your IP is allowed ICMP. There should be an option for my address as the source.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions