Change application server ports with the console and wsadmin
This topic describes how to change port numbers in the serverindex.xml file. Unless there is a port conflict, you do not need to change these settings. If your application server is not running correctly, and you suspect that there may be a port conflict, see Troubleshooting before you change any of the port settings.
- Use the administrative console to change application server ports
- Use wsadmin to change application server ports
Use the administrative console to change application server ports
- Start the administrative console.
- Expand Servers and click Application Servers.
- Click the name of your application server.
- On the application server's page, click End Points.
- Click the name of the port that you want to change.
- Make your changes.
- Click Apply or OK.
- Save the application server configuration.
Use wsadmin to change application server ports
Use the commands in these examples to modify the serverindex.xml file:
BOOTSTRAP_ADDRESS
An attribute of the NameServer object that exists inside the server. It is used by the naming client to specify the naming server to look up the initial context. To modify its end point, obtain the ID of the NameServer object and run a modify command. For example:set server [$AdminConfig getid /Server:myAppSvr/] set ns [$AdminConfig list NameServer $server] $AdminConfig modify $ns {{BOOTSTRAP_ADDRESS {{host myHost} {port myPort}}}}where myAppSvr is the name of your application server, myHost is the name of your iSeries server, and myPort is the name of the port that you want to assign to the name server.
SOAP_CONNECTOR-ADDRESS
An attribute of the SOAPConnector object that exists inside the server. It is the port that is used by the HTTP transport for incoming SOAP requests. To modify its end point, obtain the ID of the SOAPConnector object and run a modify command. For example:set server [$AdminConfig getid /Server:myAppSvr/] set soap [$AdminConfig list SOAPConnector $server] $AdminConfig modify $soap {{SOAP_CONNECTOR_ADDRESS {{host myHost} {port myPort}}}}where myAppSvr is the name of your application server, myHost is the name of your iSeries server, and myPort is the name of the port that you want to assign to the SOAP connector.