Re: NAT configuration

Irmen de Jong <[email protected]> Thu, 15 May 2014 21:58:21 +0200
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 15-5-2014 17:23, hjxwho wrote:
> Hi all,
> Does someone have tried to use Pyro4 under NAT? I use vituralbox to set up a server, and
> the Network setting is NAT. Also, i specific the port forwarding.
> Then, in the code, I did this
> 
> daemon = Pyro4.Daemon(port=8888,nathost="140.182.27.137", natport=8889)
> 
> After this, 
> I tried to call this remote on my host computer by using the uri provided by the server.
> However, I received 
> 
> Pyro4.errors.ConnectionClosedError: receiving: not enough data 
> 
> It seems like the server did not receive any data from the client. I checked the
> port8889, and it says it’s listening.
> Is there any other configuration I need to do ?
> 

Have you read the paragraph in the docs about this?
http://pythonhosted.org/Pyro4/tipstricks.html#pyro-behind-a-nat-router-firewall

Something that comes to mind is that you have to make sure your virtualbox network setup
is actually able to be accessed from your host computer (or other computers). Check if
you can ping it, for instance.

After that, check that you actually connect to the NAT port 8889 (telnet into it, or try
the trick shown here http://pythonhosted.org/Pyro4/tipstricks.html#wire-protocol-version )


Irmen


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs