FTP server

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2009
Posts: 144
Reputation: Phil++ is an unknown quantity at this point 
Solved Threads: 3
Phil++ Phil++ is offline Offline
Junior Poster

FTP server

 
0
  #1
Jan 8th, 2009
Hey, I'm trying to upload a file to a FTP server using c++. The code works fine but it just will not connect / upload the file.

I am using tripod, could this be the issue? Does anyone know any FTP sites that will allow me to upload please? Thank you
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 538
Reputation: Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough 
Solved Threads: 86
Murtan Murtan is offline Offline
Posting Pro

Re: FTP server

 
0
  #2
Jan 8th, 2009
On most operating systems, you should be able to setup a 'local' ftp server to test the functionality. If you have a local network with at least one other computer, maybe you could setup an FTP server there.

I am not presently aware of any computers 'in the wild' that will just let you upload. Most systems require authentication (to make sure that you are authorized to upload). In several cases, the permission to upload is related to a subscription of some kind.
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,050
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: FTP server

 
0
  #3
Jan 8th, 2009
Well... without actually seeing any source code, it's pretty hard to tell whether the problem lies in your code or elsewhere. Try setting up an ftp server on your local workstation, test to make sure the setup works by using a proven FTP client (such as Filezilla), then test with your client. If it fails, there's a problem with the way you wrote your client. If it works, you've got some other network issues (possibly passive/active FTP, in combination with NAT).
"Technological progress is like an axe in the hands of a pathological criminal."
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,136
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 530
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is online now Online
Moderator

Re: FTP server

 
0
  #4
Jan 9th, 2009
Are you behind NAT?
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: FTP server

 
0
  #5
Jan 9th, 2009
Also keep in mind, I think FTP uses 2 ports (not just 1). 21 and 20.... 21 for all the commands, and 20 for actual data transfer.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 628
Reputation: daviddoria is a jewel in the rough daviddoria is a jewel in the rough daviddoria is a jewel in the rough 
Solved Threads: 46
daviddoria daviddoria is offline Offline
Practically a Master Poster

Re: FTP server

 
0
  #6
Jan 9th, 2009
Is this being done with some external program? I wasn't aware c++ could upload files... lol
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 538
Reputation: Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough Murtan is a jewel in the rough 
Solved Threads: 86
Murtan Murtan is offline Offline
Posting Pro

Re: FTP server

 
0
  #7
Jan 9th, 2009
@daviddoria

Umm...what do you think external programs are written in? (ok so maybe they're not c++, but someone had to write them in something).

If you want to write c++ to do file transfers, it is certainly possible. This appears to be the original poster's goal.

Your comment seems somewhat less than helpful.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC