Why would you bind WildFly onto a custom port? This is because you might have a different service running on the same IP:PORT (that is, another WildFly or JBoss instance, Tomcat, or GlassFish).
Just open your command line and launch your WildFly standalone instance as follows:
$ cd $WILDFLY_HOME $ ./bin/standalone.sh
Now you can change the port using either the Web Console or the CLI:
Point your browser to the following address:
http://127.0.0.1:8080/console
.Log in by entering the credentials specified in Chapter 1, Welcome to WildFly! while adding the management user; we entered
wildfly
as the username andcookbook.2015
as the password.Select the Configuration tab and select from the menu on the left side under general configuration, the voice Socket Binding, and select View as shown in the following screenshot:
Select the
http
property and scroll down the page to edit the port number, as shown in the following screenshot...