[Twisted-Python] P2P Discovery
![](https://secure.gravatar.com/avatar/7a4b68ca114808248ff4f70ac9ac2365.jpg?s=120&d=mm&r=g)
Hi Guys I've got a basic UDP broadcaster working now to inform other P2P clients. This obviously only works on the local segment. Any suggestions how I could broadcast outside the segment. Multicast in python seems quite clunky and unreliable ? Regs /marinus Important Notice: This email is subject to important restrictions, qualifications and disclaimers ("the Disclaimer") that must be accessed and read by visiting our website and viewing the webpage at the following address: http://www.deloitte.com/za/disclaimer. The Disclaimer is deemed to form part of the content of this email in terms of Section 11 of the Electronic Communications and Transactions Act, 25 of 2002. If you cannot access the Disclaimer, please obtain a copy thereof from us by sending an email to ClientServiceCentre@Deloitte.co.za.
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Thu, 28 Apr 2005 12:27:59 +0200, "van Aswegen, Marinus \(ZA - Johannesburg\)" <mvanaswegen@deloitte.co.za> wrote:
If by "segment" you mean "local area network", I don't think you're going to have much luck. Most routers do not pass broadcast traffic (and for good reason - think about what would happen any time anyone pinged the broadcast address!). Multicast is unreliable and clunky in Python because it is unreliable and clunky period. Network support for it is sketchy at best, so you cannot generally use it except under very special conditions. In short, you cannot use UDP or multicast for service discovery over the internet at large. Jp
![](https://secure.gravatar.com/avatar/7ed9784cbb1ba1ef75454034b3a8e6a1.jpg?s=120&d=mm&r=g)
On Thu, 28 Apr 2005 12:27:59 +0200, "van Aswegen, Marinus \(ZA - Johannesburg\)" <mvanaswegen@deloitte.co.za> wrote:
If by "segment" you mean "local area network", I don't think you're going to have much luck. Most routers do not pass broadcast traffic (and for good reason - think about what would happen any time anyone pinged the broadcast address!). Multicast is unreliable and clunky in Python because it is unreliable and clunky period. Network support for it is sketchy at best, so you cannot generally use it except under very special conditions. In short, you cannot use UDP or multicast for service discovery over the internet at large. Jp
participants (3)
-
Jp Calderone
-
Ken Kinder
-
van Aswegen, Marinus (ZA - Johannesburg)