"Peter Duniho" wrote:
> On Sun, 10 May 2009 22:14:01 -0700, Lokanath Chhatria
> <(E-Mail Removed)> wrote:
>
> > [...]
> > How should I detect a configuration problem?
>
> It seems you have already _detected_ the problem. The question is how to
> fix it.
>
> > The socket server program is running on Windows Server 2003 with 2
> > network
> > adapters, the ip address information for the two adapters is
> >
> > 1st network adapter:
> > IP Address ------- 10.0.30.6 [...]
> >
> > 2nd network adapter:
> > IP Address -------- 192.168.112.142 [...]
> >
> > The socket client program is running on Windows XP machine with the IP
> > Address:
> >
> > IP Address ------ 10.0.30.10 [...]
> >
> > The client program gets to connect to the server when the server listens
> > to
> > 10.0.30.6, but if server listens to 192.168.112.142, the client doesn;t
> > connect.
> >
> > Even when I have put IPAddress.Any, it doesn't seem to be working for
> > 192.168.112.142.
>
> Your question is vague. Are you saying that you are trying to get a
> client that has as its only IP address "10.0.30.10" to connect to your
> server using IP address "192.168.112.142"?
>
> If so, then there's probably no configuration problem, just wrong
> expectations on your part.
>
> The client on "10.0.30.10" is not in the same sub-net as the network
> adapter using "192.168.112.142". It's just not going to be possible for
> that client to access the server on that IP address.
>
> My guess is that everything is working just fine. If you want to test the
> server on the address "192.168.112.142", you will need to use a client
> that's on the same subnet (i.e. has an IP address of "192.168.112.???"
> where "???" is some actual number), or you need to configure the router
> for that network segment to forward traffic to the server's
> "192.168.112.142" address (and even then, whether you can get at the
> router from your client using "10.0.30.10" is going to be configuration
> dependent).
>
> Pete
>
Thanks Pete,
I changed the subnet masks, so that it is same for both the IP Addresses.
It is working fine now