Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10974

Re: How to make the program support communication behind NAT device?

References <CAN1FwxcaM7KPtCUHqsrj627qeLfZxkvD1XdJnaKS8oG=vxVM=Q@mail.gmail.com>
Date 2011-08-06 13:22 +0100
Subject Re: How to make the program support communication behind NAT device?
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1979.1312633358.1164.python-list@python.org> (permalink)

Show all headers | View raw


On Sat, Aug 6, 2011 at 11:20 AM, smith jack <thinke365@gmail.com> wrote:
> 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

This is a networking question, not a Python question. You'll probably
get better results on a forum focused on networking.

Your router's address, 10.10.9.2, is another RFC 1918 address, just
like 192.168.1.3. Are you attempting to connect from elsewhere on the
10.* network, or elsewhere on the internet? If the latter, you
probably have to deal with a second level of NAT.

The easiest way to test: Can you talk to (eg ping) the router,
10.10.9.2, from the computer that's unable to reach your server? If
not, there's your problem.

Chris Angelico

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to make the program support communication behind NAT device? Chris Angelico <rosuav@gmail.com> - 2011-08-06 13:22 +0100

csiph-web