You should connect to signal QTcpServer::newConnection() and then use QTcpServer::nextPendingConnection() to get the socket whose signal QTcpSocket::readyRead() you are interested of. See the examples shipped with Qt or the Simple Chat example in our wiki.