Server = new QTcpServer(this); if(!Server->listen(QHostAddress::Any,80)){ QMessageBox::information(0,"Unable to start the server:",0); } connect(Server,SIGNAL(newConnection()),this,SLOT(addConnect()));