External access to Wildfly - Error 111: Connection refused

Asked

Viewed 530 times

-1

I need a tip on how to set up my server for access of any machine within my network. I am testing in the following development/testing environment:

Eclipse EE Luna SR2 in Java 8;

Wildfly Server 8.2.1 powered by Eclipse;

In localhost my application runs beauty, but when I try to access through another machine gives error "The System return error 111: Connection refused". I’ve already made exceptions in the firewall (input and output) for port 8080 and nothing. My standalone.xml is configured like this:

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

What else do I need to do? Note: I only want access from inside my network.


The final part of the log looks like this : 14:47:53,849 INFO [org.jboss.Ws.common.management] (MSC service thread 1-2) JBWS022052: Starting Jboss Web Services - Stack CXF Server 4.3.2.Final 14:48:32,576 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) 14:48:32,577 WARN [org.jboss.Weld.deployer] (MSC service thread 1-7) JBAS016012: Deployment Deployment "Sisprot.War" contains CDI Annotations but no bean Archive was found (no Beans.xml or class with bean Defining Annotations). 14:48:32,610 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010417: Started Driver service with driver-name = Sisprot.war_com.mysql.jdbc.Driver_5_1 14:48:32,853 INFO [org.wildfly.Extension.Undertow] (MSC service thread 1-2) JBAS017534: Registered web context: /Sisprot 14:48:32,912 INFO [org.jboss.as.server] (Serverservice Thread Pool -- 28) JBAS018559: Deployed "Sisprot.War" (Runtime-name : "Sisprot.War") 14:48:33,009 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface Listening on http://127.0.0.1:9990/management 14:48:33,010 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console Listening on http://127.0.0.1:9990 14:48:33,010 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: Wildfly 8.2.1.Final "Tweek" Started in 41889ms - Started 270 of 325 services (92 services are Lazy, Passive or on-demand)

1 answer

0

Note: google translator

You can change that
<inet-address value ="${jboss.bind.address.unsecure: 0.0.0.0}"/>
for that reason
<inet-address value ="125.126.127.133"/>
Where 125.126.127.133 is the actual IP address of the server. (also may be the name of the host)

Either in the startup script or if you are running manually, add the link argument, p. Ex. run.sh -b 125.126.127.133 or run.sh -b your.hostname.com

When you try the -b 125.126.127.133 orrun.sh -b your.hostname.com and if Eclipse is starting the server, run the following:

  1. Right-click on the server, select Open.
  2. Click the link to "Open Startup Setup", first hyperlink in the upper left corner.
  3. Add the -b 125.126.127.133 or` run.sh -b your.hostname.with 'right after the last entry in the "Program Arguments" panel - make sure to put a gap between arguments.

Example, mine looked like this
-mp "C:/jboss-eap-7.0/modules" org.jboss.as.standalone -b localhost --server-config=standalone.xml -Djboss.server.base.dir=C:\jboss-eap-7.0\standalone
Switch to that
-mp "C:/jboss-eap-7.0/modules" org.jboss.as.standalone -b 125.126.127.133 --server-config=standalone.xml -Djboss.server.base.dir=C:\jboss-eap-7.0\standalone

  • @Ninja2112 - This answer helped you?

  • .I made that modification, but I still don’t have access.

  • You can add the result of the server log file to your question when it is fully started, it will help identify the problem. Also, you are starting the server via Eclipse or command line?

  • Starting the server through Eclipse.

  • Updated the response at the bottom, if this does not work, you can turn off the server, clear the console window, restart the server and paste the entire console output (log), please?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.