Following the complete instructions on this thread, I got my Flask server to work and it is now accessible through different devices, with my config file as follows:
#config.py
DEBUG="True"
UPLOAD_FOLDER="Reports/"
SECRET_KEY = "Supp0s3dT0B3Un1qu3AndS3cr3t"
with app.run() called as
app.run(host = '0.0.0.0', port = 7000, debug = True)
However, setting the SERVER_NAME variable in the config file as
SERVER_NAME = '0.0.0.0'
actually gave me an error and refused to connect as follows:
192.168.0.163 - - [13/May/2016 12:25:58] "GET / HTTP/1.1" 404
However, when I removed it, only then did the server get accessed by my other device. I was accessing my machine through it's IP I found through ifconfig - 192.168.0.126:5000. Any ideas why this happened?
Note: app.run() was called the same way in both the cases.