With more than one server installed on a machine, the most common problem is the same HTTP port 8080 being used in all the default server configurations. In this blog I’ll demonstrate how to change default HTTP port number in Wildfly (formerly known as the JBoss Application Server). You can follow my blog about How to install Wildfly in Eclipse in case you need to do a fresh installation.

Open the Servers view

Open Eclipse and go to the menu option, Window -> Show View -> Servers

Change-Wildfly_Port-Step-0-Open-server-view

Check existing HTTP port number

Double click on the Wildfly server installation in the Servers view and check the default HTTP port number. It is 8080 in my installation.

Change-Wildfly_Port-Step-1-Check-existing-port

Modify standalone.xml

Make sure that the server is stopped. In the Servers view, drill down to Port Offset and double click on the node to open the standalone.xml file.

Change-Wildfly_Port-Step-2-Double-click-port-offset-xml

Search for the term port-offset within the file. By default, the offset value is 0. Which means you access all the default ports listed in the file.

Change-Wildfly_Port-Step-3-Search-for-port-offset

Enter an offset value say, 100 and save it. So from now, the HTTP port will be 8080 + 100 = 8180. The same logic would be applied to all other ports listed in the file. For example, the server management port number will become 9990 + 100 = 10090.

Change-Wildfly_Port-Step-4-Offset-port-number

Restart the server and check the new port

Open browser and navigate to the new HTTP port http://localhost:8180/

Change-Wildfly_Port-Step-5-Check-new-port

I hope that was useful. See you in the next blog!

How to change default HTTP port number in Wildfly
        

3 thoughts on “How to change default HTTP port number in Wildfly

  • September 22, 2020 at 5:58 AM
    Permalink

    Awesome! Thanks!

  • March 20, 2019 at 2:44 AM
    Permalink

    thank you

  • April 5, 2018 at 5:02 PM
    Permalink

    thanks for result

Comments, Questions or Suggestions: