Send a socket to server and this response me immediately (This in php). But in QT, the socket not work...

Qt Code:
  1. #include "sendreceive.h"
  2. #include "ui_sendreceive.h"
  3. #include "QUdpSocket"
  4. #include "QMessageBox"
  5. #include "QDebug"
  6.  
  7. SendReceive::SendReceive(QWidget *parent) :
  8. QMainWindow(parent),
  9. ui(new Ui::SendReceive)
  10. {
  11. ui->setupUi(this);
  12. }
  13.  
  14. SendReceive::~SendReceive()
  15. {
  16. delete ui;
  17. }
  18.  
  19. void SendReceive::on_enviarsocket_clicked()
  20. {
  21. QMessageBox *mensaje = new QMessageBox(this);
  22. mensaje->setWindowTitle(QString("Socket send"));
  23. mensaje->setText(QString("Socket Send, wait..."));
  24. mensaje->addButton(QString("Ok"), QMessageBox::YesRole);
  25. mensaje->exec();
  26.  
  27.  
  28. QByteArray Data; // Message for send
  29. Data += "SAMP";
  30. Data += QString( 93 );
  31. Data += QString( 119 );
  32. Data += QString( 26 );
  33. Data += QString( 214 );
  34. Data += QString(7777 & 0xFF);
  35. Data += QString(7777 >> 8 & 0xFF);
  36. Data.append("i");
  37.  
  38. socket = new QUdpSocket(this);
  39. int sebindeo = socket->bind(7777);
  40. int envio = socket->writeDatagram(Data, QHostAddress("93.119.26.214"), 7777);
  41.  
  42. qDebug() << "Bind: " << sebindeo << "; Send bytes: " << envio << "; Message send: " << Data;
  43. connect(socket, SIGNAL(readyRead()), this, SLOT(readyReade()));
  44.  
  45.  
  46. }
  47. void SendReceive::readyReade()
  48. {
  49. while (socket->hasPendingDatagrams()) {
  50. QByteArray datagram;
  51. datagram.resize(socket->pendingDatagramSize());
  52. socket->readDatagram(datagram.data(), datagram.size());
  53. qDebug() << "Message receive: " << datagram.data();
  54. }
  55. }
To copy to clipboard, switch view to plain text mode 

When press "Ok" i send the socket and the debug: Bind: 1 ; Send bytes: 12 ; Message send: "SAMP]wÖai"

The server should send me a message: SAMP^5zÙi–+City of Angels RP [Happy Hours do 10 level]CoA RP v11.5.2 Los Santos

But, the server not send me anything...

--


What we seek to do is send a message to a server and immediately read the data this server returns me.