Chat App unable to run #2016
-
I wrote a flask chat app with the following code from flask import Flask, render_template
from flask_socketio import SocketIO
app = Flask(__name__)
app.config['SECRET_KEY'] = 'b3738cbb0d937b414bcab077'
socketio = SocketIO(app)
if __name__ == '__main__':
socketio.run(app,debug = True, host = "0.0.0.0",port = 5000) The console responded with an output.. * Restarting with stat
* Debugger is active!
* Debugger PIN: 961-858-343
(2380) wsgi starting up on http://0.0.0.0:5000 The problem is that the server is meant to run on Please how can I go about it? I am using: Flask 3.0.0
Flask-Bcrypt 1.0.1
Flask-Login 0.6.2
Flask-Session 0.5.0
Flask-SocketIO 5.3.6
Flask-SQLAlchemy 3.1.1
Flask-WTF 1.2.1
gevent 23.9.1
gevent-websocket 0.10.1
eventlet 0.33.3 Thanks for Reading |
Beta Was this translation helpful? Give feedback.
Answered by
miguelgrinberg
Oct 16, 2023
Replies: 1 comment 1 reply
-
Remove the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Ezek-iel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remove the
host
argument tosocketio.run()
.