How to change port number in jboss-7
go to installation directory .... Mine directory like that
C:\wildfly-10.0.0.CR5\standalone\configuration\
find standalone.xml
file, open and change the http port 8080
inside
<socket-binding-group>
Here I change my port number 8080 to 3333
<socket-binding name="http" port="${jboss.http.port:3333}"/>
When starting use
./standalone.sh -b 0.0.0.0 -Djboss.socket.binding.port-offset=1000 &
- for linux
standalone.bat -Djboss.socket.binding.port-offset=1000
- windows
here 1000 is the offset value. 8080 + 1000 = 9080 the application will start
The file is $JBOSS_HOME/standalone/configuration/standalone.xml
. Find <socket-binding-group>
and <socket-binding>
there.
EDIT
There's multiple ways to do this. The recommended way is to use the management console.
If JBoss AS runs on your local computer, open the URL http://localhost:9990/console/App.html#socket-bindings
and edit the socket-bindings there. I tested it on Wildfly 8.1.0 Final, don't know if the URL is valid for other versions of JBoss AS.