[Solved]: OS X: error: [Errno 49] Can't assign requested address #116

ERROR:

Traceback (most recent call last):  File "app.py", line 24, in    app.run(host='13.127.86.238', port=5002, debug=True)  File "/usr/lib/python3.6/site-packages/flask/app.py", line 943, in run    run_simple(host, port, self, **options)  File "/usr/lib/python3.6/site-packages/werkzeug/serving.py", line 795, in run_simple    s.bind(get_sockaddr(hostname, port, address_family))OSError: [Errno 99] Cannot assign requested address

Solution:

In IPv4, 0.0.0.0 is a special address, aka INADDR_ANY, that means “bind every possible address on every interface”.

So, the multicast network at 13.127.86.238, if it’s reachable at all, will certainly be reachable from a socket bound to 0.0.0.0.

change your code from

app.run(host='13.127.86.238', port=5085, debug=True)

To 

 app.run(host='0.0.0.0', port=5085, debug=True)