Re: win32 service and sockets

From: Tom Brown (brown_at_esteem.com)
Date: 02/09/05


To: python-list@python.org
Date: Wed, 9 Feb 2005 09:18:51 -0800

On Tuesday 08 February 2005 16:41, Tom Brown wrote:
> Hi,
>
> I created a win32 service for XPPro called N4010ATestService.py (see
> below). The service runs as a particular user with administrative rights.
> It starts a thread that creates a simple socket server
> (N4010ASocketServer.py -- also below) that just waits for 20 character
> string. When I run the socket server by itself the test client can connect
> to the server and send a 20 character string just fine. When I run the
> service, the server will bind to the port but the client cannot connect. I
> verified the server was listening on the given port using netstat -an. The
> client eventually times out. Why isn't the server accepting connections
> when run in a service?
>
> Thanks,
> Tom
>

Well, I have found that it works if I launch the client on the same machine as
the service. It will not work from a remote machine. Any ideas?

Thanks,
Tom



Relevant Pages

  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)
  • This is going straight to the pool room
    ... or not the client has privilege to do what they're trying to do, ... The server environment is this: ... 3GL User action Routines that Tier3 will execute on your behalf during the ... Routine Name: USER_INIT ...
    (comp.os.vms)
  • [Full-Disclosure] R: Full-Disclosure Digest, Vol 3, Issue 42
    ... Full-Disclosure Digest, Vol 3, Issue 42 ... SD Server 4.0.70 Directory Traversal Bug ... Arkeia Network Backup Client Remote Access ...
    (Full-Disclosure)
  • Re: What doesnt lend itself to OO?
    ... > rather than client code. ... no way to do that without also touching the object with clock semantics ... will not encapsulate both clock semantics and network semantics. ... The server can do whatever it wants ...
    (comp.object)
  • RE: Fax monitor incoming + outgoing calls?
    ... problem between the client computer and the SBS server. ... Client is using the internal IP address of the SBS server as the ... To the folder redirection GPO issue: ...
    (microsoft.public.windows.server.sbs)