Re: Service not working in Network?
From: Chakkaradeep (Chakkaradeep_at_discussions.microsoft.com)
Date: 12/09/04
- Next message: Marc Scheuner [MVP ADSI]: "Arrays in C# - indexed by an Enum, and two-dimensional as a property...."
- Previous message: Dmitriy Lapshin [C# / .NET MVP]: "Re: Graphics solution sought"
- In reply to: Chakkaradeep: "Re: Service not working in Network?"
- Next in thread: Willy Denoyette [MVP]: "Re: Service not working in Network?"
- Reply: Willy Denoyette [MVP]: "Re: Service not working in Network?"
- Messages sorted by: [ date ] [ thread ]
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.
> >
> >
> >
- Next message: Marc Scheuner [MVP ADSI]: "Arrays in C# - indexed by an Enum, and two-dimensional as a property...."
- Previous message: Dmitriy Lapshin [C# / .NET MVP]: "Re: Graphics solution sought"
- In reply to: Chakkaradeep: "Re: Service not working in Network?"
- Next in thread: Willy Denoyette [MVP]: "Re: Service not working in Network?"
- Reply: Willy Denoyette [MVP]: "Re: Service not working in Network?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|