How do I stop Stash from using port 1443?

Tuan September 23, 2015

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

1 vote
Thiago Zandona
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2015

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
TAGS
AUG Leaders

Atlassian Community Events