QTcpServer is the correct class to **listen** on local machine.