Public IP address for EC2 not working

0

I created an EC2 instance to run my website on and am able to SSH into it from my local machine. I updated the security group settings to allow incoming traffic, checked and confirmed the ACL settings, updated the instance's firewall, and verified that I could ping from my local machine. However, I am still unable to access it from the browser when I type the public IP address into the URL.

How can I resolve this issue?

2回答
0
承認された回答

When you are on the box, does a curl http://127.0.0.1 work?

What ports is it listening on? 80 or 443 etc?

profile picture
エキスパート
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
  • It failed to connect to 127.0.0.1 port 80, and it appears that it is only listening on port 22.

  • Ok. Sounds like your webserver isn’t up and running.just double check it’s bound to the correct IP and port and is running. This would be why you can’t connect.

  • Youve tried http(s)://ipaddress:3000 ??

  • Port 3000 needs to be open on security group and you have used :3000 in the URL when accessing the webserver from your browser?

0

If above does not work, make sure there is an Internet Gateway associated to the subnet where the EC2 is, apart of course security groups and NACLs

profile picture
エキスパート
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
  • Okay, http://ipaddress:3000 works! Thanks!

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ