Abubakar wrote:[color=blue]
> now we are getting somewhere.
> You see you have mentioned "TcpClient/TcpListener" yourself. I have
> made pretty nice multiclient, rooms enabled, multi-threaded chat apps
> before as experiments, so I have the basic understanding of the
> client-server applications. Now I'v been doing that by using classes
> that you mentioned which are "TcpClient/TcpListener" and others like
> networkstream etc. But one of the app that I was trying to make which
> would enable me to be in contact with my home pc anywhere I go,
> through my mobile or through a desktop pc. I'm making the desktop
> version in C# and *will* make the mobile version in Java :( cuz the
> mobile I got uses a symbian OS and no .net is available for that.[/color]
Note: You should post your problem to a networking group, like
comp.os.ms-windows.networking.tcp-ip or
microsoft.public.windowsxp.network_web. This is more a problem of setting up
your infrastructure.
[color=blue]
> Anyway, so I use the TcpClient to make a connection at an IP say
> x.x.x.x, but my problem was, due to which i started this thread, that
> I'm on a network and the ip that I give for connection is alway *not
> found* or *host unreachable* becuz ofcourse I'm on a network and
> directly mentioning, inside the network, an IP which is outside the
> network is not found.[/color]
So I guess you're talking about a home LAN that is connected to the Internet
by some broadband router performing NAT?
[color=blue]
> So now I needed a way through which my tcplient
> becomes intelligent enough to automatically resolve that IP through
> the proxy, but it doesnt.[/color]
Your client would talk to the proxy, which in turn talks to the real
application server. A proxy does not resolve addresses for the public. But
anyway, you'll need some network component that is permanently visible on
the Internet, for example by using DynDNS with a compatible router. You
could either expose your server directly (not a good idea) or use a proxy.
Cheers,
--
Joerg Jooss
joerg.jooss@gmx.net