LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: branko@senet.com.au
  To  : linuxsa@linuxsa.org.au
  Date: Thu, 25 Mar 1999 22:07:01 +1030 (CST)

Re: FTP

>Hi gurus,
>
>Does anyone know how to see what is the FTP port number in LINUX.
>
>The reason is that when I browse the net with my linux proxy, I found out
>that the FTP Site in invalid. please help
>
>regards
>rajah@asiatic.com.my

Consulting the file /etc/services one should see the following two 
lines (amongst many others):

ftp-data        20/tcp
ftp             21/tcp

FTP is unusual in that commands between client and server are
exchanged on one port but the data is transferred on another. I once
fell for this trick: telnet to port 21, exchange a few commands (eg
HELP), start a download, nothing happens! - well it works for nntp
but not ftp because of the second port.

One more thing to check: according to your description the site is
invalid, make sure that the FTP site has a valid name and address, try 

	nslookup <site.name>
and	ping <site.name>

Hope this helps,
-- 
Branko Bratkovic
branko@senet.com.au

-- 
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page