Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I open IP access and change ports? #91

Open
fusang1337 opened this issue Aug 4, 2023 · 2 comments
Open

How do I open IP access and change ports? #91

fusang1337 opened this issue Aug 4, 2023 · 2 comments

Comments

@fusang1337
Copy link

fusang1337 commented Aug 4, 2023

I built it on the server and it works fine

(searchChat) root@fusang:~/docker/searchGPT/src# python flask_app.py
 * Serving Flask app 'website'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:5000
Press CTRL+C to quit
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 790-193-721

How to change access privileges from 127.0.0.1 and 5000

@QAbot-zh
Copy link

You can set the host and port in app.run() function:

app.run(debug=True, host='xxxxx', port=xx)

@michaelthwan
Copy link
Owner

Thank you @undefinedcodezhong !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants