aspose file tools*
The moose likes Linux / UNIX and the fly likes connecting to linux using ftp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "connecting to linux using ftp" Watch "connecting to linux using ftp" New topic
Author

connecting to linux using ftp

minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
while connecting to linux using ftp it shows following error.
ftp: connect :Unknown error number


Minal Silimkar
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14350
    
  22

That's not much information to help you solve the problem.

How are you trying to connect to that Linux machine? With an FTP client program? Or with your own Java program? If it's in your own Java program, then how are you trying to connect? Can you post your source code here?

Is there an FTP server running on the Linux machine and is it accessible (i.e. is there no firewall or something similar between your client computer and the Linux machine that might be blocking FTP)? Are you using the correct username and password for FTP?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
I want to connect from windows to linux using ftp.
I gave command ftp and ip address of linux machine.
c:> ftp 172.16.0.94
I am getting the erro message
ftp: connect :Unknown error number
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14350
    
  22

So, did you check if there's an FTP server running on the Linux machine, if there aren't any firewalls that block network traffic, etc.?
minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
I am using fedora core 3. From server setting I restarted the services of ftp(gssftp, tfftp, vsftpd, xinetd). From windows cmd I tried to connect to linux machine which shows following error.



[ July 22, 2008: Message edited by: minal silimkar ]
[ July 22, 2008: Message edited by: minal silimkar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connecting to linux using ftp