You are sending a plain string but trying to receive it through QDataStream, it has no chance of working. Instead of blindly copying bad examples try to think how your communication should look like.