Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Realtime P2P communication between mobile devices

I am building a mobile device that needs to send realtime information to other devices. I have considered XMPP but I do not have a server, so the communication must be only between the devices.

Is there a way to communicate using XMPP between mobile devices without a server (Or using the mobile devices as servers)?

Is Sockets a good idea ? i.e. Having a ServerSocket and client Socket and communicating this way.

Is there a smarter way? I have heard of jWebSocket but I dont really know how it works or if it's worth it.

EDIT

The process is as follows:

  1. I'm using Parse as a server/backend http://parse.com
  2. When the user runs the app, a user list is retrieved from the parse server
  3. The user then has (Could have) the ip of other clients and then attempt to communicate with them.

Problems
1. Parse does not support a XMPP server or other type of servers

like image 940
fernandohur Avatar asked Aug 21 '12 17:08

fernandohur


People also ask

Is Bluetooth a P2P?

Bluetooth, a P2P technology by nature, was invented by Ericson in 1994. It seems that, considering the rapid evolution of smartphones since the introduction of the first Apple's iPhone, and the maturity of wireless technologies, wireless P2P connectivity was not limited by the wireless standards.

What is P2P connection in Android?

Wi-Fi Direct (also known as peer-to-peer or P2P) allows your application to quickly find and interact with nearby devices, at a range beyond the capabilities of Bluetooth. The Wi-Fi Direct (P2P) APIs allow applications to connect to nearby devices without needing to connect to a network or hotspot.

What is P2P screen mode?

Wi-Fi Direct (P2P) allows devices with the appropriate hardware to connect directly to each other via Wi-Fi without an intermediate access point.

What is P2P device?

What does P2P mean? A P2P (peer to peer) connection is a direct communication infrastructure between two peers: a client device (such as a smartphone or a laptop) and an IoT device (such as a surveillance camera, smart door lock, alarm system, heat controller, or anything else that can connect to the internet).


1 Answers

You might look at using an IRC client library like http://jerklib.wikia.com/wiki/JerkLib_Wiki. This way you can use a public IRC server to communicate with your other devices...

I've not used it, but I did bookmark it for further reading because I thought it a novel concept ...

I hope it helps...

like image 103
Chris Avatar answered Oct 13 '22 10:10

Chris