Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'happily': 0.07; 'subject:Problem': 0.09; 'tcp/ip': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'cable': 0.16; 'guessing': 0.16; 'impossible.': 0.16; 'then:': 0.16; 'fair': 0.19; 'tue,': 0.20; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'interface': 0.20; 'header:In-Reply-To:1': 0.22; 'cc:addr:python-list': 0.22; 'somehow': 0.23; 'received:209.85.220': 0.26; "i'm": 0.26; 'message- id:@mail.gmail.com': 0.28; "doesn't": 0.28; 'cc:addr:python.org': 0.31; 'networks': 0.31; 'done': 0.32; '(for': 0.33; 'there': 0.35; 'running': 0.36; 'two': 0.37; 'however': 0.37; 'machine': 0.37; 'received:209.85': 0.37; 'issue': 0.37; 'apr': 0.38; 'received:google.com': 0.38; 'but': 0.38; 'unless': 0.38; 'explain': 0.39; 'received:209': 0.39; 'would': 0.40; 'header:Received:5': 0.40; 'address': 0.61; '2011': 0.62; 'here': 0.65; 'broadcast': 0.68; 'physical': 0.74; '4:40': 0.84; 'edwards': 0.91; 'receiver': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=daG0t0p6ADBtMBF9fyRKuuJKOsJ34FM5GKsqBvDY0y8=; b=iDwtI+mtnAgwhu/fIRjgQ2hyPEG87aSUISC5O/Zhhor+Clq5GqtJ2DOd6keAIQYfl2 zhvOJPGxwDmOaBdzCWWF++v48VUvfh03QDTorST2KBZXw946hlaKjvxKST/JxbwYZjl+ vqgJzauZFW2QvWWguG4kQUGyMTiRB4TqUgKU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=doUH+pVTJtVHwCeivTGE9yf7w2sAr1hOM2cOQPBSEFsiC7Kiy/HAL+e+DK5FGDkWku vh+Qyi9eUc9wkdR66vdLalGQhfv+vUPhpgTCM/bev2aj+z0ZxbSstrvGY4u++hV4x4pQ ltsG0OAclxqalvzWsWX/yXSWkCadF4a71bXto= MIME-Version: 1.0 In-Reply-To: <4dae1d82$0$81483$e4fe514c@news.xs4all.nl> References: <4dae172e$0$65870$e4fe514c@news.xs4all.nl> <4dae1d82$0$81483$e4fe514c@news.xs4all.nl> Date: Tue, 19 Apr 2011 16:52:01 -0700 Subject: Re: Problem receiving UDP broadcast packets. From: Dan Stromberg To: Irmen de Jong Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1303257124 news.xs4all.nl 41114 [::ffff:82.94.164.166]:53171 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3609 On Tue, Apr 19, 2011 at 4:40 PM, Irmen de Jong wrote: > On 20-4-2011 1:21, Grant Edwards wrote: >> >> If I don't call bind(), then the broadcast packets go out the wrong >> interface on the sending machine. >> > > Fair enough. > > Next issue then: as far as I know, broadcast packets are by default not routed across > subnets by gateways. Which is a good thing. > > That would explain why your receiver doesn't see the packets unless its interface IP > address is in the same subnet as the sender's. > > However it doesn't explain (for me) why the tcpdump program running on that same > receiver machine still happily spits out received packets. Unless the routing between > the subnets is somehow done on the receiving machine itself? My knowledge of networks > and TCP/IP ends here I'm afraid. > > Cheers > Irmen. I'm guessing there are two different subnets on the same physical cable - which is a little unusual, but not impossible.