Sockets and lemon curry

Ian King iking at killthewabbit.org
Sun Jun 6 08:09:00 CEST 1999


From: Gordon McMillan <gmcm at hypernet.com>
To: Ian King <iking at killthewabbit.org>; <python-list at python.org>
Sent: Saturday, June 05, 1999 8:14 PM
Subject: Re: Sockets and lemon curry


> Ian King writes:
>
> > I'm trying to implement an rshd server in Python.  The problem seems
> > to be with establishing the secondary socket for stderr.  I'm using
> > a Linux 2.0 box as client, and a Windows machine as server
[snip]
>
> Yes. On *nix, it takes root authority to create sockets on ports
> below 1024. No such limit on NT. You didn't say what 'port2' was, but
> it sure fits the symptoms...
>
> - Gordon
>
This sounded right on, but as I played with it, I realized: the secondary
port (which is, yes, a reserved port) is created on the Linux box; the NT
machine is simply doing a connect() (and there are no problems as Python
under NT creates *its* socket).  Nonetheless, I played with .rhosts and
such, to create as benign (and dangerous!) an environment as possible on the
client, to no avail.  Besides, if I couldn't connect() to reserved ports,
that would pretty much preclude most Internet services!  :-)









More information about the Python-list mailing list