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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

22,617 views 26 12
Join discussion

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