Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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: UNSURE 0.216 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.59; '*S*': 0.02; 'python': 0.08; 'written': 0.16; 'wrong?': 0.23; 'server': 0.29; 'message- id:@mail.gmail.com': 0.29; 'subject:support': 0.30; 'translate': 0.31; 'subject:?': 0.31; 'hosted': 0.32; "what's": 0.33; 'to:addr :python-list': 0.33; 'subject:How': 0.35; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'to:addr:python.org': 0.39; 'skip:1 10': 0.63; 'subject:program': 0.67; 'subject:make': 0.73; 'why?': 0.73; 'subject:device': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=H6G8i2/iU1GybrTSNDgLPimE5V+7lr6LVeS66ik7HLk=; b=powxbWLir7S5CWjQTdz2/KuajPGz8YHuTgoUZbBAh6BKCvjPXwuap6J8vo7TH8/K5e Dyru2TYGoQPr9zuJIUPVQdV/oSna/jKdWwBgXe8xOhkdaYuLd+sHy+5yn1HfDTQzERRH Elgb305LED3WdF9ilpvoQUSEYRE9jQ3Mql8js= MIME-Version: 1.0 Date: Sat, 6 Aug 2011 18:20:30 +0800 Subject: How to make the program support communication behind NAT device? From: smith jack To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-Mailman-Approved-At: Sat, 06 Aug 2011 13:46:11 +0200 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1312631173 news.xs4all.nl 23928 [2001:888:2000:d::a6]:38925 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10972 The subnet behind my router is 192.168.1.0/24, my pc ip is 192.168.1.9, the server written with python is hosted on 192.168.1.3 on port 1033, i can connect to this server from my pc But cannot connect to this server when outside of this subnet? why? I have made port translate on router, that is 10.10.9.2:1033 to 192.168.1.3:1033 what's wrong?