Debian: sudo ufw allow PORT. CentOS: sudo firewall-cmd --zone=public --permanent --add-port=PORT/tcp sudo firewall-cmd --reload
sudo ufw enable sudo ufw allow 5000/tcp //allow the server to handle the request on port 5000