It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Bitbucket

Atlassian supported Jenkins integration for Bitbucket Server

We’ve been building a plugin to integrate Bitbucket Server and Jenkins CI, and I’m excited to announce that our alpha is ready to download and install. It lets you seamlessly configure a Jenkins job ...

1,087 views 3 17
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you