Following the troubleshooting steps I found that only one of the ports has been opened by KeePass:
TCP 127.0.0.1:12546 0.0.0.0:0 ABHÖREN 14592^
With 14592 being the process id of KeePass.
12536 is not opened by any application.