The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Serial Port/Com Port etcpasswd Red Hat 0 04-14-2009 05:18 AM
disabled telnet now need port 23 or port 22 panzerkw SUN Solaris 3 03-05-2007 03:08 PM
Which port? dsimpg1 AIX 7 09-28-2005 10:22 AM
BitTorrent port 6969 blocked... how to get around the blocked port PenguinDevil IP Networking 1 05-05-2004 11:03 PM
port 111 Stormpie Security 6 04-18-2002 06:23 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-29-2009
wilsonSurya wilsonSurya is offline
Registered User
  
 

Join Date: Oct 2008
Location: Indonesia
Posts: 14
FTP to other port than 21

Hi all,

Simple question.
What is the command to ftp to other port, says 55555

Astelnet we can use: telnet IPaddress portNumber right?
What about ftp? Thanks a lot
  #2 (permalink)  
Old 05-29-2009
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,507
check the man page of your ftp client tool.
  #3 (permalink)  
Old 05-29-2009
wilsonSurya wilsonSurya is offline
Registered User
  
 

Join Date: Oct 2008
Location: Indonesia
Posts: 14
OK thanks. done.
How about in windows?
here is the help for ftp

Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-w:windowsize] [-A] [host]

-v Suppresses display of remote server responses.
-n Suppresses auto-login upon initial connection.
-i Turns off interactive prompting during multiple file
transfers.
-d Enables debugging.
-g Disables filename globbing (see GLOB command).
-s:filename Specifies a text file containing FTP commands; the
commands will automatically run after FTP starts.
-a Use any local interface when binding data connection.
-A login as anonymous.
-w:buffersize Overrides the default transfer buffer size of 4096.
host Specifies the host name or IP address of the remote
host to connect to.

Notes:
- mget and mput commands take y/n/q for yes/no/quit.
- Use Control-C to abort commands.


So. please advice. Thanks
  #4 (permalink)  
Old 05-29-2009
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,507
windows ftp client doesn't cut it. if you want, go download an ftp client for windows that support specifying a port number. Or, you can use a programming language such as Perl or Python with their ftp module. those modules allow you to specify connection with a different port. eg Python
Code:
#!/usr/bin/env python
import ftplib
server="localhost"
user="anonymous"
password="test@hotmail.com"
try:
    ftp = ftplib.FTP()
    ftp.connect(server,21)     #specify port number when connection
    ftp.login(user,password)
except Exception,e:
    print e
else:    
    ftp.cwd("incoming")    
    ftp.retrlines('LIST')
  #5 (permalink)  
Old 05-30-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,912
The open subcommand in Microsoft's version of ftp supports a port number i.e. open host [port].
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0