Renjith
Renjith

Reputation: 1154

AWS Linux Instance: Access JBoss Wildfly console

I am trying to start a JBoss Wildfly Application server in AWS Linux. As you can see in the log given below, the application server is started and it is listening in port 8080.

enter image description here

I got a descent response when I tried to curl to http://localhost:8080/ from the same machine.

enter image description here

But while trying to access it from my laptop using the IPv4 Public IP it failed to connect throwing an error "refused to connect".

Given below are my security group settings.

enter image description here

Can anyone tell me what could be the possible reasons for this? Some people say that along with the security group settings, the firewall needs to be opened for this port too. But I am not sure how to do that as I am pretty new to AWS.

####UPDATE

I started a Tomcate server on the same instance and it is accessible outsite. So is that something to do with the Wildfly?

Upvotes: 0

Views: 7547

Answers (2)

Sarath M
Sarath M

Reputation: 36

Try binding all IP addresses to the wildfly as below ./standalone.sh -b 0.0.0.0

Upvotes: 1

Gaurav Wadhone
Gaurav Wadhone

Reputation: 144

Here are few tips to check issue.

  1. Check if VPC is attached to Internet gateway ( In case you are not using Default VPC then you would need to attach one )
  2. Check Network ACL's (Its on top for security group under VPC left side). NACL's are stateless by nature and you need to add both Inbound and outbound rules to it.
    For Inbound rules you should open access to internet (Since you are accessing from Internet ) by adding 0.0.0.0/0 in destination and port 8080 For Outbound same for source address 0.0.0.0/0 and port you can choose all or ephemeral ports 1024 - 65535
  3. check this NACL is attached to subnet where your EC2 instance resides.

Hope above steps help you to troubleshoot the problem.

Upvotes: 0

Related Questions