Well. This is regarding an issue once you may get when you try to run a python program which uses the framework flask. :D
Do you know about Flask??
Flask is a micro-framework for web development using python
You can read more from here: http://flask.pocoo.org/docs/0.10/
And my problem was accessing the service up and running using flask. Actually the application was up and running in the http:0.0.0.0:5000/.
But I was unable to access it using the server ip. That is, I was unable to access it remotely. So I have surfed the web for a solution. After trying out different methods I was able to resolved my problem. And it was a simple change to the code. Just changed the call for the run method as follows.
app.run(host='0.0.0.0')
And it worked as expected. !! So hope this will help some one else too!! :)
Cheers!
"do good and good will come to you!!"
No comments:
Post a Comment