In article
<d5caf205-74db-4daf-a0a6-c1c5b0e8cdf6@[EMAIL PROTECTED]
>,
Saurabh <sendsaurabh@[EMAIL PROTECTED]
> wrote:
>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.
What you're asking for is *tough*. NAT devices and other firewalls
are designed to drop packets that are spontaneously received from the
outside. Only if an outgoing connection is established is return
traffic allowed. So, by design, things will reject what you want to
do.
There are some ways to work around this feature. Skype, in
particular, has a lot of ways to punch thru firewalls, most of which
aren't explained anywhere. There are things like
http://blog.pjsip.org/2007/04/06/introducing-pjnath-open-source-ice-stun-and-turn/
which explain a little more. There may be some open source things
that can help, but don't expect perfection.
Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A.
Heinlein


|