title: PyQt5 QUdpSocket not binding to address and a port
body: <pre><code>def main():
      app = QCoreApplication([])
      local_ip = QHostAddress('192.168.43.126')
      port = 2359
      udp_socket = QUdpSocket()
      b = QByteArray()
      b.append('i0000,0000')
      udp_socket.writeDatagram(b, QHostAddress('192.168.43.1'), port)
      udp_socket.bind(QHostAddress('192.168.43.126'),port)
      while True:
          #print('in the while loop')
          while udp_socket.hasPendingDatagrams():
              #print('has pending datadrams ')
              s = udp_socket.readDatagram(10)
              print(s)
  
      app.exec_()
  
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>this i snot working the Socket is not binding to the port i don't knew why 
  i need to make the server waits for a message but not using signals </p>