I try to programm a Mobile Messenger (C++, Qt) where the Server only sends the current IP address of Phone A to Phone B and vice versa and the data is send directly between these two devices with the goal to minimize the needed calculationpower of the server.


Client A has a connection to Server S and Client B has a connection to S as well. If S sends the IP and Port of A to B, can B send something to A without creating a new connection through using the IP of A and the Port which A is already listening to?

Has someone a better idea how to solve this or is this idea in general impossible i.e. you always have to send data between two Smartphones through a server.

Source link

By Robin

Leave a Reply

Your email address will not be published. Required fields are marked *