468,504 Members | 1,985 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,504 developers. It's quick & easy.

TCP File Transfer behind NAT

Dear All,

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.

I have a mechanism through which the public IP of the router and Port
number will be forwarded to me. But after that I am not sure that
simple TCP/IP socket programming will suffice or I need to do
something more for that.

If you have any article link or article or any example that shows how
the File Transfer can be done for such a case then please help me
regarding this.

Any sought of help or idea will be appreciated from you all.

from-
Saurabh Srivastava
Apr 3 '08 #1
1 4510
Saurabh a crit :
Dear All,

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.

I have a mechanism through which the public IP of the router and Port
number will be forwarded to me. But after that I am not sure that
simple TCP/IP socket programming will suffice or I need to do
something more for that.

If you have any article link or article or any example that shows how
the File Transfer can be done for such a case then please help me
regarding this.

Any sought of help or idea will be appreciated from you all.
Asking in a network programming or os specific group would help you more.

FYI NAPT services are transparent from the public network point of view
so unless you are using some complex tunneling system you simply address
a service (protocol/port number) of the front end and it will forward it
to the internal server transparently. When the protocol includes some
address related information (like FTP), there are some applet modules on
the frontend router that will make the translation at the application
level. That might be a problem if you are using a secured communication.

Therefore, in general and in your case, simple TCP/IP socket programming
is sufficient.

Nothing to do with C++.

Michael
Apr 3 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Alexander Gilman Carver | last post: by
6 posts views Thread by Thomas Connolly | last post: by
4 posts views Thread by Kenneth Keeley | last post: by
3 posts views Thread by Adrian Parker | last post: by
16 posts views Thread by Claudio Grondi | last post: by
4 posts views Thread by CSINVA | last post: by
reply views Thread by Saurabh | last post: by
3 posts views Thread by gieforce | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.