How do I stop Stash from using port 1443?

Netstat shows that Stash is using port 1397, 1443 and 8006 for local connections.  But I cannot find out how to free up port 1443 for a SQL Server install.

Netstat result example:

TCP 0.0.0.0:5701 0.0.0.0:0 LISTENING 1156
TCP 0.0.0.0:7999 0.0.0.0:0 LISTENING 1156
TCP 0.0.0.0:9008 0.0.0.0:0 LISTENING 1156
TCP 127.0.0.1:1397 0.0.0.0:0 LISTENING 1156
TCP 127.0.0.1:1443 0.0.0.0:0 LISTENING 1156
TCP 127.0.0.1:8006 0.0.0.0:0 LISTENING 1156
TCP [::]:5701 [::]:0 LISTENING 1156
TCP [::]:7999 [::]:0 LISTENING 1156
TCP [::]:9008 [::]:0 LISTENING 1156

Edit2: 

  • Prior to 3.8, server.xml is in conf/.  But the file content does not list port 1443.  
    <Server port="8006" shutdown="SHUTDOWN">
    <Connector port="9008" protocol="org.apache.coyote.http11.Http11NioProtocol"

 

Edit: I can't reply to your comment due to the 24 hour restriction.

Hi Thiago,
A few issues:
- I can't find the server.xml in the home directory: https://confluence.atlassian.com/stash/changing-the-port-that-stash-listens-on-321257990.html#notfound . Is it because I'm using Stash 3.6.0?
- I've updated my questions with the full netstat result. The top three open port 5701, 7999, and 9008 are configurable using the Stash Server Settings. The other ports appears to be used internally by Stash.

1 answer

This widget could not be displayed.

Hi Tuan,

To change stash ports you need to edit the conf\server.xml file in the <Stash installation directory>.

See page below for more details on the lines you will need to change to accomplish that:

https://confluence.atlassian.com/display/BitbucketServer/Changing+the+port+that+Bitbucket+Server+listens+on

Hope this helps you.

Cheers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,201 views 8 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you