Re: Service not working in Network?

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


Date: Thu, 9 Dec 2004 01:11:08 -0800

hi,

my service is working fine..if i connect from the same machine to my server
which is also running in the same machine, there s no any delay but the same
if i connect to my service from anyother remote client, there s delay,it is
taking minimum 60 seconds.....is this my network problem r is that i have
fine tune somewhere n my Server....

with regards,
C.C.Chakkaradeep

"Chakkaradeep" wrote:

> 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: sunmanagers Digest, Vol 11, Issue 6
    ... check this e-mail and any attachments for viruses. ... > not an easy way of doing it, since my print server is ... >> Regards, ... > I did a tail on the messages file to get a stop action of the flying ...
    (SunManagers)
  • Re: Application design
    ... Gone through the whole article and written the sample app. ... we can quite quickly add in another server to handle some of the processing. ... Best regards, ... http://www.FOCUSPortals.com - Local franchises available ...
    (microsoft.public.dotnet.framework)
  • Re: clients of a domain not accessible
    ... Best regards ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Server use 255.255.255.0 ...
    (microsoft.public.windows.server.networking)
  • Re: Still strange not fully working DNS server
    ... Best regards ... "Meinolf Weber" wrote: ... On the server make sure the DHCP client service is started. ... Check the DNS server, DHCP, server name, etc ...
    (microsoft.public.windows.server.dns)
  • Re: Failing DC
    ... Without having the option to start the server normally, ... Best regards ... Meinolf Weber ... I have all FSMO roles seized to another DC with the exception of the ...
    (microsoft.public.windows.server.active_directory)