FTP problems

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I'm trying to FTP from my Windows box to my Linux box (2 feet away). (Windows 98SE, RedHat 7.1)

I'm using WS_FTP for the windows client, and WU FTP as the linux server. I'm not sure what's wrong here...

If I open a terminal on the linux box, and type 'ftp', I can 'open 127.0.0.1' and get in fine. Very fast. But when I try from my windows box, I never get in. The WS_FTP log has this:

WINSOCK.DLL: Microsoft wsock32.dll, ver2.2, 32bit of Apr 22 1999, at 20:29:32.
WS_FTP LE 5.06 99.07.21, Copyright © 1992-1999 Ipswitch, Inc.
- -
connecting to 192.168.1.203:21
Connected to 192.168.1.203 port 21
! Receive error: Blocking call cancelled

! Connection failed 192.168.1.203
'
I'm not sure where the log is for the server. Where is it?

Any idea what's going on here? Or how I can fix this?

Mark Hensler
If there is no answer on Google, then there is no question.

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Did you edit /etc/hosts to allow the Windows IP to connect?
I had the same problem before.
Also, if that doesn't work, you can always put a FTP daemon on the windows and ftp to that and use mget or recv

Laughing out loud

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Open up a DOS window.
Type in ftp (ip address)
enter valid username
enter valid password.

This will determine if it is a WS_FTP error or not.

The logs should be in /var/log/messages.
If you open it with vi, hold down the
shift G and it will take you to the bottom of the file.

The "Blocking call canceled" error can be helped in the WS_FTP by selecting the Use Passive Transfer Mode checkbox on the Session tab of the Options dialog box, and clicking the Set As Default button.

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I tried the DOS thing...

C:\WINDOWS\Desktop>ftp 192.168.1.203
Connected to 192.168.1.203.
Connection closed by remote host.

C:\WINDOWS\Desktop>
'
WS_FTP already has that passive box checked.
I looked at that log file....
Aug  1 14:30:23 host ftpd[1021]: FTP session closed
Aug  1 14:37:34 host ftpd[1026]: FTP session closed
Aug  1 14:40:00 host kernal: es1371: unloading
Aug  1 14:48:17 host ftpd[1037]: FTP session closed
'
What should the /etc/hostsfile look like? Here's mine:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
'
nike_guy_man, I need my linux box to run a FTP server... Other people will need to get in my box from outside my router.

Mark Hensler
If there is no answer on Google, then there is no question.

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

I think you might have to add the windows IP to /etc/hosts in order for it to work...
Try that and tell us what happens then.
I've never used WU FTP so I don't know how it would work...
What type of router do you have set up?

Laughing out loud

mairving's picture

They have: 2,256 posts

Joined: Feb 2001

Mark, I've been playing around a bit with this. I have a Linux box and a Windows one also. The Windows machine also has Linux on it. When I ftp from Linux to Linux, no problem. But when I ftp from Windows to Linux, I get a similar message to the one you are getting. In my logs I also see this message
getpeername (wu.ftpd): Socket operation on non-socket

I have looked on wu.ftp site and they show the problem but not really a fix other than an upgrade.

What version are you running?
wu.ftpd -V

Mark Irving
I have a mind like a steel trap; it is rusty and illegal in 47 states

nike_guy_man's picture

They have: 840 posts

Joined: Sep 2000

Mairving...
Check out http://www.landfield.com/wu-ftpd/
I installed wu-ftpd too and i got the same error...
There are some sample config files but I didn't know what to do with any of them.
I can FTP 127.0.0.1 and connect and all, but not from another box, or even if I ftp to the linux IP from the linux.

Laughing out loud

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

nike has been helping me via ICQ. He installed WU FTP on his linux, and got errors.

I have Version wu-2.6.1-16

I went to http://www.wu-ftpd.org/ and found a link to sone 'fixes' here. One that caught my eye was 'pasv-port-allow-correction.patch'. What deos this do?

Thanks for the help guys!

Mark Hensler
If there is no answer on Google, then there is no question.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

My /etc/ftpgroups and /etc/ftphosts files are basically empty (only commented lines). Is that OK or should there be something in there?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.