Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:help': 0.07; '(aka': 0.09; 'def': 0.10; 'bind': 0.16; 'distinct': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:program': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'code,': 0.18; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'thanks!': 0.26; 'guess': 0.27; 'subject:please': 0.27; 'message-id:@mail.gmail.com': 0.27; "doesn't": 0.28; 'probably': 0.29; 'error': 0.30; 'code': 0.31; 'problem.': 0.32; 'to:addr :python-list': 0.33; 'received:google.com': 0.34; 'nov': 0.35; 'same.': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'ok,': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'here': 0.65; 'broadcast': 0.65; 'dang': 0.84; 'improvement': 0.84; 'subject:chat': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OKDE3fzw/peSQNDGjogQSo6DpfPye7DkzMQenOXU1zY=; b=ZTV8xYDbtM11Wkk/NLLXmH16kzvEWHPu1u4lWPvTheIyg5I8kS2wgy3CLYIEs37U3T PfGHlX9I47gV5Ifv+oWE7InjCN/qT2Jn9kgnJhd42SzhXl9Hs1JozZwA7GVc/fu1VttC VsCoEgBdLFOesI1c/KL33krV3XOjQUk0TOVDSDuVHxzmj1syvv9TYRVegkQTcXaHyg/p w588pv60r5f317GPyAY12a2Cxzjy7H5RH7h8vCiDGfjGXfPV24fsKBsahOFUziHL1/TM GGe1N/Anp8AIbCcabV1UhrQOZ2C439j6KmHy+qxiHpLsG45W2kLJS2fCOpzoR5EqTOof b2KA== MIME-Version: 1.0 In-Reply-To: <6dfb8bda-3a54-47ce-b511-fd6945b4d4cf@googlegroups.com> References: <8edb652f-c48f-4758-a315-3ecc8070267d@googlegroups.com> <6dfb8bda-3a54-47ce-b511-fd6945b4d4cf@googlegroups.com> Date: Wed, 28 Nov 2012 17:33:42 +1100 Subject: Re: please help me to debud my local chat network program From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354084425 news.xs4all.nl 6871 [2001:888:2000:d::a6]:48919 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34001 On Wed, Nov 28, 2012 at 4:47 PM, Minh Dang wrote: > ok, here is my code, zip > http://www.mediafire.com/?ob4kokda81fj6xc Thanks! That's a distinct improvement :) That code doesn't exactly match the traceback, though; there's client.py not pclient.py and the line numbers don't match. So I have to just guess that the error is the same. However, I can see an immediate problem. def broadcast(): broadcastIP = "" broadcastPort = 9999 That's not a valid broadcast IP :) I think you probably want to bind to "" (aka "any address"). ChrisA