Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-16-2002, 08:06 PM   #1
Registered: Jun 2002
Location: Wilmington, NC
Distribution: Red Hat 7.2
Posts: 47

Rep: Reputation: 15
Why Does It Take So Long To Connect via FTP?

I have a dedicated server running Red Hat 7.2 with WU-FTPd version 2.6 for FTP access. The server is only 500 MHz, 32 MBs of RAM, and has a 5 GB drive but it is pretty quick via HTTP, SSH, SSL, etc.

I can't figure out why it takes it so long to connect whenever I login or upload/download any files (even tiny scripts). It just says connecting for like 15 seconds each time then downloads the file right away.

I checked through the settings under FTP Server in Webmin but I couldn't find anything that pertained to how long it takes to accept a connection. Is there such a thing? Or is it just because my server doesn't have a lot of MHz or RAM? Unfortunately, I can't upgrade anything on it so I have to make do. It only receives about 50 visitors a day (at the most).

I know it's not my host's network because I also have several accounts with them on their shared servers that have A LOT more accounts and RAM, etc. Whenever I login or upload/download via FTP it does so within 2 seconds.

Any ideas?
Old 07-28-2002, 04:27 AM   #2
LQ Newbie
Registered: Jul 2002
Location: CA, USA
Distribution: Fedora
Posts: 12

Rep: Reputation: 0
Could it be any firewall settings? Have you tried with flushing ipchains? /sbin/ipchains -F

Old 07-30-2002, 08:30 AM   #3
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Usually a problem like that is caused by it trying to do a dns lookup or a ident lookup. Because you probably haven't set that up it just waits till the lookup times out and then continues on. Usually the dns lookup can be solved by simply adding an entry in the file /etc/hosts.
Old 08-01-2002, 07:34 AM   #4
LQ Newbie
Registered: Jan 2001
Location: Raleigh, NC
Posts: 11

Rep: Reputation: 0
I also vote for the DNS lookup. I seem to hit this problem periodically over the years after installing server after server. It's just a "brain fart" on my part....

You can also check the /etc/resolv.conf file for valid DNS entries (or in this case, invalid ones). Invalid entries can be nothing more than your host not having access to the DNS server specified.

Good luck!
Old 08-01-2002, 10:14 PM   #5
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428

Rep: Reputation: 30
I had one like this come up 2 days ago, even if you have the correct entries specified in the /etc/hosts file if your actual dns setting are wrong you will get this delay, example from my prob I had, I have 4 machines on my lan I have all the names and ip's in my hosts file, only one machine connects to the internet, but for the heck of it I put my dns (ISP's numbers ) on all machines, now when I tryed to use my webmail server on local lan it would take 1 minute to send a message to another machine on local lan, I removed dns settings from systems and now it doesn't even try to do a dns lookup and goes right off the hosts file, so case in point even if your hosts file is correct, if you can't get to the dns that you have specified that might be your problem, I hope this helped ya.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection with Long Delay (Telnet, Ftp) sarmadys Linux - General 8 02-09-2011 12:55 AM
how to connect ftp... monojit_18 Linux - Software 2 10-03-2004 05:16 PM
SSH takes a long time (2 minutes) to connect jinju Linux - Newbie 5 07-31-2004 10:37 PM
Cant connect to my ftp from the outside deep9 Linux - Networking 3 04-19-2004 05:22 AM
ftp - not able to connect chapzilla Linux - Newbie 1 07-29-2003 06:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration