How to change the server’s ports in WebSphere

There is two ways to change the communication ports for a server in WebSphere, the console and the configuration files. The former is the easiest, that I usually use. However today I broke my server by using a port already used, and it refused to start. So I couldn’t use the console as usual and I had to find a different way. I am sharing this because I found a lot of information on WAS 6 and 7 and not really on WAS 8.

Via the administration console

Servers > Server Types > WebSphere application servers > server_name > Communications (on the right side) > Ports

WebSphere_ports_console

Via the configuration file

The file persisting the port number is actually

WAS_HOME/profiles/profile_name/config/cells/cell_name/nodes/node_name/serverindex.xml

You can then change the port number you want and restart the server.

Leave a Reply