since Bitbucket is running on tomcat you only need to tell tomcat that it should accept local connections only. How do you do that?
Add address="127.0.0.1" to your connector in the server.xml located in the conf folder of your Bitbucket installation. See line 6 in the example below.
Please let me know if this was helpful.
All threads I found on this topic appear to be outdated. This was the best match for both searching google and the Atlassian community for "Bitbucket listen localhost only". Being new here, I wasn't sure if this should be opened as a new thread in lieu of necroing this one.
Having a local firewall to block access to unecessary interfaces is not an option.
There does not appear to be a server.xml file located on the most current release of Bitbucket, and the bitbucket.properties file contains the following at the top of the file:
#> Migrated to database at jdbc:postgresql://localhost:5432/GIT?targetServerType=master
I assume this has been moved to a Bitbucket setting from within the interface, but it is eluding me.
The following is from the page http://127.0.0.1:7990/admin/server-settings:
Bitbucket/Administration/Server Settings/Base URL is set to http://127.0.0.1:7990
Here are my listening ports for Bitbucket:
# netstat -anp | grep -iw 799.
tcp 0 0 0.0.0.0:7999 0.0.0.0:* LISTEN 2999/java
tcp 0 0 0.0.0.0:7990 0.0.0.0:* LISTEN 2999/java
tcp 0 0 127.0.0.1:7992 0.0.0.0:* LISTEN 2989/java
tcp 0 0 127.0.0.1:7993 0.0.0.0:* LISTEN 2989/java
tcp 0 0 127.0.0.1:7992 127.0.0.1:51936 ESTABLISHED 2989/java
tcp 0 0 127.0.0.1:51936 127.0.0.1:7992 ESTABLISHED 2999/java
I'd like to the top two listening on 127.0.0.1 instead of 0.0.0.0, just like the rest of them.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
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