Thanks, the error was that my "qpake -project" doesn't add "QT += network" to my .pro file.

I don't know how to solve that problem, but now I know that I can use the Sockets