Shoudn't it be:

Qt Code:
  1. QTcpServer *tcpserver;
  2. tcpserver = new QTcpServer(this);
  3.  
  4. QHostAddress hostadd("192.168.3.89");
  5.  
  6. if (!tcpserver->listen(hostadd,23456)) {
  7. QMessageBox::critical(this, tr("Fortune Server"), tr("Unable to start the server: %1.").arg(tcpserver->errorString()));
  8. close();
  9. return;
  10. }
To copy to clipboard, switch view to plain text mode 
You were checking the return value of the wrong call to listen..

HIH

Johannes