2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
Even if your security group allows traffic, the instance itself might have a local firewall blocking it. Make sure the instance's firewall (iptables on Linux, Windows Firewall) has a rule allowing traffic on port 5000.
Check your Flask application to listen on 0.0.0.0 to accept connections on all interfaces.
if __name__ == "__main__":
app.run(host='0.0.0.0', port=5000)
0
Which OS is this, and is there a host-based firewall?
This might be ufw
on Ubuntu, or firewalld
on RHEL/CentOS/Fedora. Check port 5000 is open in its config.
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 4 mois