title: socket.gaierror: [Errno 8] nodename nor servname provided, or not known in flask app
body: <p>I followed the steps mentioned in <a href="https://developers.openshift.com/en/python-flask.html" rel="nofollow">https://developers.openshift.com/en/python-flask.html</a>
  to create a sample flask application. </p>
  
  <p>When I am trying to run wsgi.py on my local mac machine. I am getting the following error.</p>
  
  <blockquote>
  <pre><code>Traceback (most recent call last):
    File "wsgi.py", line 24, in &lt;module&gt;
      httpd = make_server('localhost', 10000, application)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py",
  </code></pre>
    
    <p>line 144, in make_server
            server = server_class((host, port), handler_class)
          File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
    line 419, in <strong>init</strong>
            self.server_bind()
          File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/simple_server.py",
    line 48, in server_bind
            HTTPServer.server_bind(self)
          File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py",
    line 108, in server_bind
            SocketServer.TCPServer.server_bind(self)
          File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
    line 430, in server_bind
            self.socket.bind(self.server_address)
          File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py",
    line 224, in meth
            return getattr(self._sock,name)(*args)
        socket.gaierror: [Errno 8] nodename nor servname provided, or not known</p>
  </blockquote>