I am using JBOSS EAP 7. I start it using the command

sh standalone.sh -b

Following is my IP config when not binding explicitly from command line.

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

Apart from this, I also changed binding IP in standalone.xml file. When I start it it doesn't show any error. I am not using fail2ban or any other sort of firewall on my server and I am using port 8050.

To confirm whether my server is listening at that port, I ran the following command

sudo netstat -tlnp

with the output:

tcp 0 0*   LISTEN      4670/java  

To confirm that this is the jboss, I ran

pgrep -f jboss

and get the same pid i.e. 4670 in this example.

I checked server.log and everything is normal there too. Thus my conclusion is JBOSS is running fine in the mentioned port with proper binding (I gave IP to be able to remotely access from anywhere). But still I am not able to access it from browser or DHC Client. What could possibly have gone wrong?

  • What is the exact error message you are getting? What is the output of telnet server_ip:8050? – Khaled Feb 2 '17 at 8:02
  • @Khaled telnet: Unable to connect to remote host: Connection timed out is what I get when i do telnet server_ip port – Sudip Bhandari Feb 2 '17 at 9:30
  • @SudipBhandari: It seems there is connectivity issue like firewall blocking or .. – Khaled Feb 2 '17 at 9:48
  • @khaled I have apache installed on that same server and I can access it. Currently i don't have any firewall setup on either side – Sudip Bhandari Feb 2 '17 at 9:53
  • 1
    @SudipBhandari What are you using for standalone.xml inside the interfaces tag? Connection timed out is not caused by firewall or anything blocking your access, so first of all, update your question with standalone.xml. – FarazX Feb 2 '17 at 10:07

Do the following tests to find out what your problem is and how to solve it :

  • For public interface, you should use your server IP Address. I recommend you use the tag <any-address/> instead of an IP Address.

So your standalone.xml should look like below :

    <interface name="management">
       <inet-address value=""/>
    <interface name="public">
  • The above solution should probably solve your problem. But if didn't so, use grep in your configuration files to see if there is anything you've missed to change to - e.g. grep -R /opt/wildfly/*.

  • If everything is fine and yet you have no idea what is causing the issue, check if packets/requests are received, you can use tcpdump to check it.

The last possible reason may be that your VPS provider is blocking any non-world-widely used ports, so you will be in need of contacting them. To make sure if you should contact your provider, just do the following test :

  • Since you mentioned in comments that you can access your Apache index page, please stop your JBoss service, change your apache port from 80 to 8050, restart your web-server and check if you can still see your apache index page on 8050 or not. - and since you mentioned in comments that you couldn't access your index page whilst apache is not using default 80 port, we can conclude as the following ↴

Conclusion [ According to the Chat Session ]

According to the test we did in chat session, the OP can access Apache index page whilst Apache is set on port 80, but cannot access it with any other port apart from 80. So we can conclude that the provider is filtering and blocking ports other than 80, 22, and etc. So the OP should contact the VPS provider and ask them to allow ports that he is in need of. And the occurrence of the problem was owing to VPS provider's firewall, not any configuration or setting that the OP would have made.

  • 1
    @SudipBhandari Have you tried to check if it works locally? Try cURL, e.g. curl -I, and then from another machine in the same network try the same, e.g. curl -I privateIPaddress, and if it works so, from another machine in another network area, use curl -I publicIPaddressBehindTheNAT and let us know in which step you will face with error. – FarazX Feb 2 '17 at 10:34
  • 1
    OK, so I guess we're getting closer to the point. Before going any further, let me ask you a question, are your requests received when you use tcpdump?? Any thing in server.log??? The reason I'm asking this question is because If you're using VPS, your provider - GoDaddy, OVH or etc. - may be blocking using specific ports, so you should contact your provider and ask them to allow those ports. If you're not using a VPS, let us know about the result of tcpdump, and server.log. – FarazX Feb 2 '17 at 11:30
  • 1
    @SudipBhandari You said you can see apache index page, yes? So let's do something to make sure that your provider's firewall is not redirecting or changing any request containing specific ports. Stop your JBoss service, change your apache port from 80 to 8050, restart your web-server and check if you can still see your apache index page on 8050 or not. Let me know about the result, and we will try to find out - hopefully - what is causing your problem by following some other steps. – FarazX Feb 2 '17 at 12:59
  • 2
    There is no firewall running on my server and yet I can't start apache in any other port apart from 80. Although when I use other port it shows as 'listening' when inspected using netstat. – Sudip Bhandari Feb 2 '17 at 13:51
  • 1
    @SudipBhandari OK, so your provider is blocking other ports apart from 80. You should contact your provider and ask them to allow port numbers that you are in need of. ;) – FarazX Feb 2 '17 at 13:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.