Re: [twsocket] FTP Failure

2007-11-26 Thread Dave Baxter
Passive Mode is the way to go, but some clients will still "trip up" it
seems, notably IE in it'a various flavours.

Make sure you have enough data ports forwarded in the router/firewall to
the PC that your "Server application" is attached to.  That should not
be a problme testing your server from another PC on the same LAN though.

>From watching things as they work (or not)  I find IE seems to use up
all the data ports that you can supply at times, where as a "true" ftp
client will only use 1 or two, depending on how many data streams are in
use. 

Another way, if you need and are able to, is to use it over a VPN
between server and client.

Cheers.

Dave B.


This mail has been scanned by Palmer Cook Computer Services Limited.  
www.palmercook.co.uk
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Failure

2007-11-24 Thread DZ-Jay
On Nov 24, 2007, at 17:46, David Bridges wrote:
> Can you use passive mode with the ICS FTP component?  If so how 
> difficult is
> it to implement?

Hello:
Just set the FtpCli.Passive property to True.

dZ.

-- 
DZ-Jay [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Failure

2007-11-24 Thread David Bridges
>>> PORT 192,168,1,91,11,164
>> < 200 PORT command successful.
>
> Looks like a router problem to me.
> The client sends the local, private IP and port in the Port
> command, however the (NAT) router isn't smart enough to change this
> to the current public IP. I guess the user must either buy a smarter
> router or try passive mode (if the server allows it).
>
> --
> Arno Garrels [TeamICS]
> http://www.overbyte.be/eng/overbyte/teamics.html
>
Can you use passive mode with the ICS FTP component?  If so how difficult is 
it to implement?

Db 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Failure

2007-11-24 Thread Arno Garrels
David Bridges wrote:
> It always works
> at my site but some clients have this problem.  

>> PORT 192,168,1,91,11,164
> < 200 PORT command successful.

Looks like a router problem to me.
The client sends the local, private IP and port in the Port
command, however the (NAT) router isn't smart enough to change this
to the current public IP. I guess the user must either buy a smarter
router or try passive mode (if the server allows it).

--
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html




 


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] FTP Failure

2007-11-24 Thread David Bridges
I'm getting and FTP failure that happens only with certain internet 
connections it seems.  On the same computer with the same software it will 
work fine with one connection but not another.  It always works at my site 
but some clients have this problem.  The FTP server at the other end is the 
same in all cases also.  Is there a way I can get some more info about the 
failure?

Here is what I'm getting in my OnDisplay method:
< 220 xx.com FTP server (Version wu-2.7.0(63) Mon Apr 22 
15:32:39 EDT 2002) ready.
> USER 
< 331 Password required for .
> PASS xx
< 230 User  logged in.  Access restrictions apply.
> CWD /
< 250 CWD command successful.
> TYPE A
< 200 Type set to A.
> PORT 192,168,1,91,11,164
< 200 PORT command successful.
! Upload Size 20856
> STOR WEB_UPLOAD.TXT

This is the code...

  FtpClient->HostName= mainForm->ftp_server;
  FtpClient->Port= "ftp";
  FtpClient->UserName= mainForm->ftp_user_name;
  FtpClient->PassWord= mainForm->ftp_password;
  FtpClient->HostDirName = host_dir_name;
  FtpClient->HostFileName= file_name;
  FtpClient->LocalFileName   = file_name;
  FtpClient->Binary  = binary;
  FtpClient->DisplayFileFlag = false;
  if (! FtpClient->Transmit()) <<< Here the failure is 
happening
  {
DocumentMemo->Lines->Add(failure_msg);
closeBtn->Enabled = true;
Screen->Cursor = crDefault;
return;
  }

The settings on the FTPClient component:
Account
Binary: true
Connection Type: ftpDirect
DataPortRangeEnd: 0
DataPortRangeStart: 0
DisplayFileFlag: false

LocalAddr:  0.0.0.0
MultiThreaded: false
Options->ftpAcceptLF: true
Options->ftpNoAutoResumeAt: false
Options->ftpWaitUsingSleep: false
Options->ftpBandWidthControl
Proxy Server:
ShareMode: ftpShareExclusive
Timeout: 15


I appreciate any advice that can be provided.

Db 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be