An alternative to using the Bonjour protocol for the iPhone peer-to-peer network

I am implementing an iPhone / iPad application that allows users to send messages to each other using the bonjour protocol. In principle, the server publishes its service via bonjour, and clients connected to the same Wi-Fi can open their service and connect to it to start sending messages. The problem I discovered is that some routers seem to have problems with Bonjour. When I run my application at home or in some other places, it works fine. Publishing and opening bonus services works flawlessly. However, when I tried my application in one of my friends apartments, some (not all) customers could not open the published bonus service. I also noticed that other apps that use Bonjour (like the Apple Remote app),also encountered problems in the specified network. After some digging, I found that other people had problems with bonjour and some routers. Therefore, I have 2 questions:

1) Does anyone know if this problem with Bonjour is that some routers seem to be widespread? In other words, if my application relies on Bonjour to function at all, I should be concerned that it will not work on 50% of WLANs or most routers have no problems with bonjour. Obviously, I can't expect anyone to find out how each router deals with bonjour packets, but there may be some network gurus who can point me in the right direction: -p.

2) Secondly, if bonjour is too risky for the protocol to build my application, what are some alternatives with similar features? I would like to (preferably) use the functions of publishing and opening services without having to manually enter the IP addresses of other phones.

! , , !:)

+5
1

. , - , ( UDP), Bonjour ( mDNS , ).

, . Bonjour (.. UDP, 224.0.0.251 5353), , , iTunes - , . , . , .

tcpdump , , . , . , - , ? , - .

, , , - , Bonjour , .

+3

All Articles