Solved

ftp socket error # 10061

Posted on 2009-07-03
10
2,148 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 

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
 
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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Goal:  To set up a secure SSH server for your home computer to make it accessible anywhere AND to use it as a port forwarding proxy. Steps 1.  WinSSHD version 5 is free for personal use.  So download and install it.  You can download it from the…
Introduction People like FTP.  It's a solid, stable, robust protocol for quickly transferring files between two hosts using TCP/IP.  In most cases it's much faster than SMB or CIFS, and certainly much easier to set up between organizations.  This…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

739 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