Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change_Port_Number #21075

Closed
wants to merge 2 commits into from
Closed

Change_Port_Number #21075

wants to merge 2 commits into from

Conversation

Farhan-labib
Copy link

When integrating WSO2 with another project, you might encounter a common issue if both the WSO2 server and the other project are configured to use the same port. To resolve this, you need to change the default port used by WSO2. Here’s a clear guide on how to do this.

@CLAassistant
Copy link

CLAassistant commented Sep 8, 2024

CLA assistant check
All committers have signed the CLA.

@@ -195,6 +195,13 @@ By default mode, it would ask you to enter the master password

> ciphertool -Dchange (in UNIX)

4. Change the Port by modifying the conf/axis2.xml file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the carbon.xml?

Even so, manually changed the configuration will be overridden with the configurations in the deployment.toml.

Correct way to change the port numbers are mentioned in the product documentation https://is.docs.wso2.com/en/latest/references/default-ports/#change-the-offset-for-default-ports

@madurangasiriwardena
Copy link
Member

@Farhan-labib,

Thank you for your contributions. As mentioned in the previous comment, correct way to change the port number is mentioned below, which is extracted from the product documentation.

There are two ways to set an offset to a port:

  • Pass the port offset to the server during startup. The following command starts the server with the default port incremented by 3.
    ./wso2server.sh -DportOffset=3
  • Set the offset value in the <IS_HOME>/repository/conf/deployment.toml file as follows:
    [server]
    offset = <PORT_OFFSET_VALUE>
    

Closing the PR since this already documented in the product documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants