Похожие чаты

Hi, does anyone knows how we can create p2p serverless

chat system I googled it a lot yet I couldn't come up with a solution, I mean how can two peers on the different network know each other without any kind of server, let's just think one peer is just connected to internet where should it search for other peers how could it get others address and from where??

1 ответов

15 просмотров

You can build a p2p system that works on local network without requiring a centralised server. But if you want to do the same on internet scale, You'll have to get a centralised servers that tracks each and every user, Like a torrent tracker. To build this for a local network, Look into multicasting. Basically, You start a UDP server, Join a multicast group at some IP address(that belongs to multicast ip addr range) and a port. This way, Any instance of the app on the local network will be able to find each other. This method has limitations like, Router must have IGMP enabled. There are some situations which can result in a situation where two instances of an app can not find each other but I don't know much about those.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта