Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: service does not respond
| Subject: | Re: service does not respond |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 2 Aug 2006 09:51:18 |
"Terry tmnet" <tdecruz@tm.net.my> wrote in message
news:44d0926d@newsgroups.borland.com...
> when I run the client on computer 2 and the server on computer 1, the
> server on computer 1 will only receive messages running as a normal
> windows application but will not work if it runs as a service.What could
> be the problem......
There is no difference between the two. A server socket is a server socket
regardless of whether the application is a service or not. Also,
TIdTCPServer is a multi-threaded component, so the functionality is the same
regardless of what the server's owning thread is doing. There has to be
something else going on to cause your problem. Is computer 1 behind a
firewall? If so, then does the service application have permissions in it?
> Receiving messages running as a normal windows on computer 2 shows
> that there is no problem with the router(opening ports).
You said the problem was on computer 1, not 2. Since a router is involved,
is computer 1 able to connect to computer 2 at all when the server is inside
a service?
Gambit
none