added EC2 public IP address check