title: How to solve socket.gaierror: [Errno -3] Temporary failure in name resolution?
body: <p>i want to run socket app that i found. But i couldn't run it.</p>
  <p>Here is my code;</p>
  <pre><code>from flask import Flask, render_template
  from flask_socketio import SocketIO
  
  app = Flask(__name__)
  app.config['SECRET_KEY'] = 'aaa#'
  socketio = SocketIO(app)
  
  
  @app.route('/')
  def sessions():
      return render_template('session.html')
  
  
  def messageReceived(methods=['GET', 'POST']):
      print('message was received!!!')
  
  
  @socketio.on('my event')
  def handle_my_custom_event(json, methods=['GET', 'POST']):
      print('received my event: ' + str(json))
      socketio.emit('my response', json, callback=messageReceived)
  
  
  if __name__ == '__main__':
      socketio.run(app, debug=True)
  </code></pre>
  <p>Then i run this code in machine like following;</p>
  <blockquote>
  <p>flask run -h my_machine.bt.local -p 3000</p>
  </blockquote>
  <p>But i got this error;</p>
  <blockquote>
  <p>socket.gaierror: [Errno -3] Temporary failure in name resolution</p>
  </blockquote>
  <p>How can i solve this problem? I couldn't find any solution.</p>