Saurabh <sendsaurabh@gmail.com> wrote in part:
> Can anyone tell me, how to write such a program that can
> transfer files (either binary or text) behind NAT devices(
> such as for computers behind firewalls and routers and
> other NAT devices) using TCP socket programming.
Have a look at `ftp` or `scp` source code (either Linux
or BSD). NAT should be transparent, but you must either
originate inside the NAT zone, or specifically configure the
NAT device to route incoming requests to a particular server.
-- Robert
Bookmarks