Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

intermitant dos FTP error

0 views
Skip to first unread message

John Brown

unread,
Aug 28, 2009, 3:44:01 PM8/28/09
to
If at the dos prompt I do a ftp with valid ftp.address, user, pw it connects
OK.
If at the resulting ftp prompt I do a dir it does not (sometimes) respond
with a directory but with the following:
"I won't open a connection to 192.186.1.123 (only to 126.40.192.230)"

If I query somehost.com/ip it tells me that 126.40.192.230 is my ip address
if I type ipconfig on the win 2000 it tells me that the computer is
192.186.1.123

This does not happen all the time. just some of the time. the rest of the
time dir works OK. cuteFTP always works OK. fileZilla always works OK

In a in house VB6 application I use the Microsoft Internet Transfer Control
(ITC). Problems with the ITC correspond to the times the dos FTP gets the
error mentioned above. The same application at customer's locations does not
have any reported problems.

(my connection goes through a MS Server 2003 and a several routers.)
--
John Brown

Nobody

unread,
Aug 28, 2009, 7:23:50 PM8/28/09
to

Also, one FTP program issues the following command to switch to passive
mode:

PASV


Nobody

unread,
Aug 28, 2009, 7:21:58 PM8/28/09
to

"John Brown" <John...@discussions.microsoft.com> wrote in message
news:D88CDD5D-1F19-4389...@microsoft.com...

First, this group is for DirectX development in VB6 or lower, as in game or
graphics development.

Second, the problem that you have is that you are not using Passive FTP
mode. Without it, you have to open a corresponding port at your firewalls or
router. I am not sure if ITC supports passive mode, but see these
alternatives:

SAMPLE: Vbhttp.exe Demonstrates How to Use HTTP WinInet APIs in Visual Basic
http://support.microsoft.com/kb/259100/en-us

SAMPLE: VBFTP.EXE: Implementing FTP Using WinInet API from VB
http://support.microsoft.com/kb/175179/en-us

SAMPLE: Using FTP WinInet APIs in Visual Basic with SimpleFtp
http://support.microsoft.com/kb/195653/en-us


John Brown

unread,
Aug 31, 2009, 11:02:02 AM8/31/09
to
Thanks Nobody. I will try this approach and these links to solve my problem.
Your assistance is very much appreciated.
--
John Brown
0 new messages