tanmayub February 2016

Unable to connect to an EC2 windows instance on port 8080

I've created a free tier EC2 instance on AWS. I've opened inbound connections to this instance through security group. On EC2 instance, I'm able to access wildfly server and see it running/listening on port 127.0.0.1:8080. When I run netstat -ab command on EC2 instance I can see services listening on above IP address/port number combination. Could you please help me connect to this instance from my own machine? Please let me know if I should provide any additional info that would help troubleshoot the problem. Thanks in advance.

I've opened below inbound ports-

80      tcp 0.0.0.0/0
8080    tcp 0.0.0.0/0
22      tcp 0.0.0.0/0
23      tcp 0.0.0.0/0
3389    tcp 0.0.0.0/0
443     tcp 0.0.0.0/0
-1     icmp 0.0.0.0/0

Answers


Michel Feldheim February 2016

Your service listens 127.0.0.1 which is not your network interface. Configure to listen to your instances private ip (10.x..) or 0.0.0.0 (all) instead


tanmayub February 2016

Solved it with the help of this post: JBoss WildFly: starts but can't connect?

I was almost there but had to change standalone.xml to listen to all ports as @Michel suggested. Below is my standalone.xml . Thank you all again for all the help.

Earlier standalone entry:

<interfaces> 
 <interface name="management"> 
    <inet-address value="${jboss.bind.address.management:0.0.0.0}"/> 
 </interface> 
 <interface name="public"> 
    <inet-address value="${jboss.bind.address:0.0.0.0}"/> 
 </interface> 
 <interface name="unsecure"> 
    <inet-address value="${jboss.bind.address.unsecure:0.0.0.1}"/> 
 </interface> 
</interfaces>

Changed above to this:

<interfaces>
        <interface name="management">
            <!-- Use the IPv4 wildcard address -->
        <any-address/>
        </interface>
        <interface name="public">
            <!-- Use the IPv4 wildcard address -->
        <any-address/>
        </interface>
        <interface name="unsecure">
            <!-- Use the IPv4 wildcard address -->
        <any-address/>
        </interface>
    </interfaces>

Post Status

Asked in February 2016
Viewed 3,945 times
Voted 7
Answered 2 times

Search




Leave an answer