| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: did not respond after a period... |
| Terrence From: Austin, TX USA Posts: 13 Member Since: 04/22/04 |
posted May 3, 2004 11:31 AM I can "put" a file to this ftp site from the dos prompt, but it fails when I use your great tool. Ideas on why the connection times out? ftp1.Username = subscriber.ftpusername.Trim(); ftp1.Password = subscriber.ftppassword.Trim(); ftp1.ServerPort = Convert.ToInt16(subscriber.ftpport); ftp1.Server = subscriber.ftpaddress.Trim(); ftp1.FileType = Dart.PowerTCP.Ftp.FileType.Image; ftp1.DoEvents = true; ftp1.Passive = true; ftp1.Restart = false; Subscriber: MAC 220 OMAC_NT_003 Microsoft FTP Service (Version 5.0). USER ***** 331 Password required for ******* PASS ***** 230 User ******* logged in. TYPE I 200 Type set to I. PASV 227 Entering Passive Mode (216,141,245,242,18,114). MAC 10:00:29 AM Start Process 10:00:29 AM ERROR: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 3, 2004 11:41 AM In this scenario, the server is 216.141.245.242 and it has set up a data connection to be established on port 4722. For some reason the client is not able to connect to that server/port combination. Perhaps a firewall is blocking it? What happens if you set passive to false? |
| Terrence From: Austin, TX USA Posts: 13 Member Since: 04/22/04 |
posted May 3, 2004 12:25 PM When I set it to Passive = false, it works. Could you please comment on this behavior? Thanks for your help. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 3, 2004 12:55 PM When passive = true, the server sets up a listener for the client to connect to for the data connection. When passive = false, the client sets up the listener In your case the server is able to connect to the client but not vice versa. I suspect a firewall is causing the trouble you are having. |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|