Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon ec2 not working when accessing through public IP [closed]

I am new to Amazon EC2. The application is working fine on the Amazon EC2 Windows Server. But when i am trying to access the same through the public ip, it is not accessible. I have seen the inbound configurations and the ports(HTTP,HTTPS,SSH) are enabled.

I am unable to access the application through public ip.

 http:ec2-XX-XX-XXX-XX.us-west-2.compute.amazonaws.com  

is accessible when inside the EC2 region, however

XX.XX.XXX.XX:8080/myapp  

is not accessible.

XX.XX.XXX.XX is the public ip. 

Yess.. This is VPC..!!!

like image 833
Jay Avatar asked Nov 08 '14 15:11

Jay


People also ask

How do I access my EC2 instance with public IP?

Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . Select an AMI and an instance type that supports IPv6, and choose Next: Configure Instance Details. On the Configure Instance Details page, for Network, select a VPC and for Subnet, select a subnet. For Auto-assign IPv6 IP, choose Enable.

Does an EC2 instance need public IP to reach Internet?

For accessing internet from EC2 instance in public subnet using Internet Gateway, the instance needs to have public IP address. Either one can configure the instance to have public IP address or attach EIP.

Why can't I access my EC2 instance?

Verify that your instance is ready Check your instance to make sure it is running and has passed its status checks. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/ . In the navigation pane, choose Instances, and then select your instance.

When an EC2 instance is shut down it will be assigned the same public IP address by default?

6 Answers. Show activity on this post. Actually, When you stop/start your instance, the IP address will change. If you reboot the instance, it will keep the same IP addresses.


1 Answers

create security group with request you are wish to grant access. here I've created security group to any request

enter image description here

Then add the specific security group to network interface

enter image description here

like image 139
Chinthaka Dinadasa Avatar answered Sep 27 '22 17:09

Chinthaka Dinadasa