Solved

ftp socket error # 10061

Posted on 2009-07-03
10
2,129 Views
Last Modified: 2013-12-09
Hello

Have a tricky one here. I am able to connect to our server (FTP) on port 22 using FileZilla, list the directory, and copy files to and from the server.

BUT, using command line FTP, and Indy10 I cannot get to do a directory listing, the error is "socket error # 10061".

Any ideas? I have tried passive and active modes, data ports settings etc etc.

Thank you
0
Comment
Question by:WalterRautenbach
  • 5
  • 4
10 Comments
 
LVL 53

Accepted Solution

by:
Infinity08 earned 250 total points
ID: 24772458
Port 22 is not the standard port for FTP.

So, either the server is running on port 21 (the standard FTP port), and you need to specify port 21 when using the command line FTP tool.

Or, the server is indeed using port 22, in which case it's probably FTP over SSH, which is likely not supported by the command line FTP tool.

If the server is using port 22 in a non standard way (ie. for normal non-secure FTP), then make sure you specify that port when using the command line FTP tool.
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 24772475
If the port is not the problem, then check whether the server is able to accept multiple concurrent connections ... Maybe it only accepts a limited amount of connections, and they are all used up.

The other option is that a firewall is blocking access somehow, so check that too.
0
 

Author Comment

by:WalterRautenbach
ID: 24772639
Thank you for the response

Port 22 is used. We are implementing a SFTP(we want to) although not using SSH and certificates yet.

But please note that FileZilla is able (using port 22) to do exactly what we want to, but we are using Indy10.

Why would Indy10 not be able to do this but FileZilla is?

Regards
0
 

Author Comment

by:WalterRautenbach
ID: 24772652
Further, we are able to connect to the server without a problem, just not able to get a directory listing or to copy files to and from the server
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 24772676
Does Indy10 support SFTP ?
Did you check the other possibilities in my second post http:#24772475 ?
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 53

Expert Comment

by:Infinity08
ID: 24772691
>> just not able to get a directory listing or to copy files to and from the server

Ah. Can you compare the FTP command logs for both FileZilla and Indy10, and see where the difference lies ?
0
 

Author Comment

by:WalterRautenbach
ID: 24773243
We use Indy's LIST method. FileZilla calls MLSD

It is at this point where Indy returns with the "socket error # 10061"....on the LIST method.

FileZilla at the same token continues and returns "150 Connection Accepted"

Command line FTP returns a "425 Can't open data connection" when we try the same commands than FileZilla
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 24773416
The PORT or PASV commands are (exactly) the same for both FileZilla and Indy10 ?
The same ports are used in both cases ?
0
 
LVL 39

Assisted Solution

by:itsmeandnobodyelse
itsmeandnobodyelse earned 250 total points
ID: 24780300
>>>> "socket error # 10061"....

#10061 is error WSAECONNREFUSED (or ECONNREFUSED at UNIX) what means the server refused connection. If not for any of the reasons Infinity already told you, it could be that FileZilla is in the whitelist of the FTP server while Indy10 is not.
0
 

Author Closing Comment

by:WalterRautenbach
ID: 31599567
No solid answer, too much speculation. I still had to spend days to get to a solution...which is no solution
0

Featured Post

Are your end users making ugly email signatures?

Have you left it up to your end users to create their own email signatures? Are they forgetting to add the company logo or using garish font colors? Take control and ensure all users have the same email signature.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RDM Dependencies on VMware 2 68
Seeking File Sync with specific capabilities 2 56
Replicate user and share data 8 46
Cant protect clients on DPM 2012 R2 2 58
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now