For each QTcpSocket returned by QTcpServer::nextPendingConnection() you can store information such as remoteAddress, remotePort and so on.