내용으로 건너뛰기

Public IP not displaying on EC2

0

Hi folks, I manually created an EC2 instance. After creation , even after refreshing multiple times, the public IP is not appearing. The only solution that I tried was restarting the instance and it worked successfully. Missing Public IP

질문됨 3달 전76회 조회
1개 답변
0

When you create an EC2 instance and don't see a public IP address assigned to it, there are several potential causes and solutions:

First, check if you enabled the "Auto-assign public IP" option during instance creation. If this option was set to "Disable" when you launched your instance, it won't receive a public IP address automatically.

The behavior you experienced - where restarting the instance resolved the issue - is interesting because normally, stopping and starting an EC2 instance would actually cause an auto-assigned public IP to change (or be lost if it wasn't properly configured). This suggests there might have been a temporary issue with the IP assignment or display in the console.

Here are some things to check if you encounter this issue again:

  1. Verify your instance is in a public subnet with a route to an Internet Gateway
  2. Confirm the "Auto-assign public IP" setting is enabled for your instance
  3. Check if the "Public IPv4 DNS" column is hidden in your EC2 console (you can enable it via the settings icon)
  4. Refresh your browser or try logging out and back into the AWS console

If you need a consistent public IP address that persists across instance stops and starts, consider using an Elastic IP address instead. Elastic IPs remain associated with your AWS account until you release them, providing a stable public IP for your instances.
Sources
Issue with automatic public IP adress (Bug report) | AWS re:Post
Private IP show on server rather public IP | AWS re:Post
General connection prerequisites - Amazon Elastic Compute Cloud

답변함 3달 전
AWS
전문가
검토됨 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠