I use Ubuntu 24.04 LTS and solved it by adding an allow rule in my firewall using the below command
sudo ufw allow 8081/tcp