1 Reply Latest reply on Sep 25, 2014 5:39 AM by redcar

    Change the controller port

    redcar

      Hallo,

       

      because I want to run different wildfly server on one machine, I want to change also the controller port.

      The windows service is installed with this command:

       

      service_800 install /controller localhost:9991

       

      Before I have changed the service.bat to service_800.bat and changed also the controller port to 9991

      set CONTROLLER=localhost:9991

       

      After the installation I get the service Wildfy_800

      And after start of the service I can see the processes: wildfly-service-800.exe and java_800.exe

      With the command on cmd: netstat -aon I can not see, that the port 9991 is opened for listening.

       

      And because of this, the connection with jboss-cli:

      jboss-cli.bat --controller=localhost:9991 and connect ends with error message:

      The controller is not available at localhost:9991: java.net.ConnectException: JBAS012144: Could not connect to http-remoting://localhost:9991. The connection timed out: JBAS012144: Could not connect to http-remoting://localhost:9991. The connection timed out

       

      What can be wrong.

      Werner

        • 1. Re: Change the controller port
          redcar

          At the end of standalone_800.bat I use the parameter

          -Djboss.socket.binding.port-offset=800

           

          If I call the Management-Website of WidlFly_800 I get the URL:

          http://localhost:10790/console/App.html#home

           

          So I suppose, that the controller works at 10790 which is 9990 + 800

          So it seems, that wildfly has not set the controller port to 9991 as I wished.

          Is there an option to set the controller port during the start of wildfly with standalone.bat?