Answer the question
In order to leave comments, you need to log in
How to fix WinError 10049 when changing host on Flask server?
Hello. I wanted to check if the page will be opened from another computer on the Internet if I pass it as an argument when starting the server in flask: app.run(debug=True, host='ip'), where ip is my ip on the Internet (looked at https:// myip.ru/ , I'm sitting at the router). When running the script, it gives an error: OSError: [WinError 10049] The required address for its context is incorrect. Why? Miguel Greenberg's Flask book doesn't mention this. It only says: "... the web server will be accessible from any computer on the network at: ' abcd:5000 ', where "abcd" is the external IP address of the computer where the web server is running."
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question