Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How create a P2P web-chat without any server?

is there a way to create a P2P web-chat without any server ?

like image 942
xRobot Avatar asked Mar 17 '10 15:03

xRobot


People also ask

Does a chat app need a server?

Yes you need a server to develop a live chat system. Even if you use Apple's default APNS (Apple Push Notification Service) or Google's GCM (Google cloud messaging), you have to use your own server to send message or notification.

How does a P2P chat work?

A Peer to Peer or P2P network is simply a network between two computers, phones, or tablets that can share resources and communicate without going through a server. This means that your communication is quick and secure without relying on a messenger to share or peeking at your information.


2 Answers

Yes, but you must decide on a place to meet.

If your friend send his ip over to you, you can connect. Then you only need to tell some more people to join. After some time you will get bigger and bigger. Then, if some link on the net fail, the cloud will be broken up in two clouds(netsplit). Then everyone need to know how to get back to being "one cloud".

Some one in the cloud always have to play the server, that is done with voting. If all agreed on who is the server, then it's decided. If not agreed, shoot one down and vote again.

You have to host your own web-server to serve up the web-interface, I guess.

I have not tried this. But I think it would work.

like image 160
FlinkmanSV Avatar answered Sep 18 '22 05:09

FlinkmanSV


Malte Uble's excellent UniversalComet article does exactly that as a proof of concept. Even works with Iphone and Android phones.

like image 40
Jeremy Wall Avatar answered Sep 22 '22 05:09

Jeremy Wall