Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Development Programming Misc > Re: TCP File Tr...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 976 of 1011
Post > Topic >>

Re: TCP File Transfer behind NAT

by nathan@[EMAIL PROTECTED] (Nathan Mates) Apr 3, 2008 at 11:37 AM

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
 




 2 Posts in Topic:
TCP File Transfer behind NAT
Saurabh <sendsaurabh@[  2008-04-03 03:14:02 
Re: TCP File Transfer behind NAT
nathan@[EMAIL PROTECTED]   2008-04-03 11:37:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 1:20:31 CDT 2008.