Question Locked

Connection between two Clients.

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

I try to understand if that is possible:
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 solved this or is this idea in general impossible i.e. data between two smartphones always has to be send through a server?

1 reply

by rproffitt

Google this -> open source android messenger.

Also, why not code it up and try it? You are a programmer so you can learn the answer in about a week or less.

This discussion is closed to new replies.