Answer the question
In order to leave comments, you need to log in
How to effectively test client-server applications written in Qt on the same machine?
Hello.
I create a client-server application on Qt, the exchange goes through TCP. Online game.
All data is sent to the QTcpSocket of the connected clients.
In fact, if you run the application 2 times on the same computer to test 2 clients, the data will only be sent to 1 client application. Because QTcpSocket is the same.
Is it possible to run applications without using virtual machines so that 2 applications have different QTcpSocket values? Through some setting of Windows / Linux (there is no particular difference on what to test, if only on 1 computer)? And it's too time-consuming to do otherwise.
Answer the question
In order to leave comments, you need to log in
the exchange is via UDP
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question