2

The title is the question....

Kevin Boyd
  • 12,121
  • 28
  • 86
  • 128

2 Answers2

1

Due to restrictions imposed by Network Operators, it will be impossible to have mobile phones talk directly to each other. So, you will need to implement an HTTP service that will act as the middle man.

The idea is that mobile phones will connect to the service and register. They will then use the service to discover other connecting phones. The service will finally proxy the conversation between two connected devices. A suitable software layer could make the whole process transparent.

kgiannakakis
  • 103,016
  • 27
  • 158
  • 194
1

You can open a ServerSocketConnection and a SocketConnection on the other side. This allow two way direct communication between two mobile phones. You can look at this page for some more details.

Possibly you can send the initial connection information by SMS and after that switch to socket communication.

Szere Dyeri
  • 14,916
  • 11
  • 39
  • 42
  • Actually I am looking for a solution for multiple phones, and I'm not worried about the cellular network because the phones are connected through WLAN. – Kevin Boyd Jan 14 '10 at 06:26
  • Then you need a find a way to find peers. It is difficult with multiple phones and no central server. Perhaps you really need a central server. – Szere Dyeri Jan 14 '10 at 06:34
  • What if I aleardy know the IP and MAC of the peers is it possible then? – Kevin Boyd Jan 14 '10 at 06:46
  • 1
    Yes it is possible. You just need the IP addresses. You also need port number but you can fix it anyway. Depending on what you want you can one one phone act as a server and others connect to it or have multiple servers. Most phones will have security restrictions on using sockets. But you can always sign your application to overcome that. – Szere Dyeri Jan 14 '10 at 06:54