PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.cplus > TCP File Transfer behind NAT
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
TCP File Transfer behind NAT

Réponse
 
LinkBack Outils de la discussion
Vieux 03/04/2008, 11h13   #1
Saurabh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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 me
regarding this.

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

from-
Saurabh Srivastava
  Réponse avec citation
Vieux 03/04/2008, 12h42   #2
Michael DOUBEZ
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [OT]TCP File Transfer behind NAT

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 me
> regarding this.
>
> Any sought of or idea will be appreciated from you all.


Asking in a network programming or os specific group would 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
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h44.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08897 seconds with 10 queries