Re: Service not working in Network?

From: Chakkaradeep (Chakkaradeep_at_discussions.microsoft.com)
Date: 12/09/04


Date: Wed, 8 Dec 2004 21:23:01 -0800

hi willy,

this was really a silly but a BIG mistake........thanks for the reply....

with regards,
C.C.Chakkaradeep

"Willy Denoyette [MVP]" wrote:

>
>
> "Chakkaradeep" <Chakkaradeep@discussions.microsoft.com> wrote in message
> news:0629F485-9BF5-4038-B245-796449D7761C@microsoft.com...
> > hi all,
> >
> > I have written a C# Service which is a Server accepting Clients,It is
> > working fine when i connect from localhost but when i connect from any
> > other
> > machine to my machine , the service is not working, the Service is in
> > "Network Service".....i even tried "Local System" and also "Local Service"
> > but the end result is , it is working only for Localhost connections and
> > not
> > for Remote Connections...
> >
> > the code for server is as follows..
> >
> > ////////////************Server Code starts
> > here**********//////////////////
> > IPAddress ipAddress = Dns.Resolve("localhost").AddressList[0];
> > TcpListener listener = new TcpListener(ipAddress,portNum);
> > try
> > {
> > listener.Start();
> > TcpClient handler = listener.AcceptTcpClient();
> > ////extra things done here
> > }
> > ////////////************Server Code starts
> > here**********//////////////////
> >
> > but the remote connections are not getting connected.......why so?
>
> How would you like your clients to connect if you bind your listener to
> 'localhost' which resolves to 127.0.0.1?
> You have to use your real host name, not the loopback address.
>
> Willy.
>
>
>



Relevant Pages

  • Re: It is not the case
    ... > 127.0.0.1 is specifically a loopback address. ... I suspect that the proxying ... >> Regards, ...
    (microsoft.public.isa)
  • Re: loopback network ignore
    ... Did you try "no loopback"? ... Regards, ... Steve ... Prev by Date: ...
    (comp.dcom.sys.cisco)
  • Xvfb Question
    ... I'm trying to configure Xvfb to listen ONLY on the loopback address, ... Leandro ...
    (Focus-Linux)