Server not listening on port 443 after enabling HTTPS
Today (June 5th, 2025) I installed a fresh Teamcity instance on Linux. After performing the installation and various other startup tasks I arrived at the SSL/HTTPS configuration page. I used the web UI to create a Let's Encrypt cert, used port 443, left redirect disabled (thankfully), and saved things. Unfortunately, I couldn't access the UI via https on port 443. I restart the teamcity server instance. Still nothing. I verified the OS firewall had port 443 open. Then I checked with netstat to see if anything was listening on port 443, and nothing was. On older versions of Teamcity I think one did have to edit the server.xml file to change ports on Tomcat directly, but I thought the current versions handled this. Any advise to troubleshoot further would be great.
Please sign in to leave a comment.
If you're running TeamCity on Unix with a non-root account, keep in mind that only the root user can bind to ports below 1024.
You could try logging into the TeamCity UI using HTTP and change the server port to something like 8433—or any available port above 1024.
Best Regards,
Tom
Tom,
You were correct, that was the problem (and I should have thought to check that). I had guessed that all of that would have been taken care of, but it was not. I don't remember if 443 was the default HTTPS port on the screen when I first went to the admin page for that, but if it was that should probably default to a higher port to avoid this. For my part, I added authbind to the systemd script I'm using to start Teamcity and that seems to have done the trick.
-Steve
Fix (for other forgetful folks like me):
Install authbind. (i.e. dnf install authbind, apt install authbind)
sudo touch /etc/authbind/byport/443
sudo chmod 777 /etc/authbind/byport/443
Edit start command to use authbind. (i.e. authbind --deep /opt/teamcity/bin/teamcity-server.sh start)
Restart Teamcity.
I'm glad to hear that the issue has been resolved. Thank you for sharing the solution—it will surely benefit others.
Best Regards,
Tom