Your best friend for file transfer.

Fetch application logoFetch

Fetch 4.0.3 on OS 10.3.6 (15 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 19 years ago by Paul Dewars
  • Latest reply 19 years ago from Paul Dewars
  • Paul Dewars Member

    I Have been trying to connect to a server for sometime now.I input the servers name & all that happens is that the dog keeps running & it says Getting File List…i cal see the folder in which i want to get a file but i can never see the file i want,I have been able to give a file across but i can never view the file i want from the server. I am using Fetch 4.0.3 on Mac OS 10.3.6. What is it i have to do now & how can i do it?

    Posted 19 years ago #

  • Jim Matthews Administrator

    You probably need to change the setting of the "Use passive transfers (PASV)" checkbox in the Firewall section of Fetch's Preferences window (choose Preferences... from the Fetch menu).

    If that does not work could you choose "Fetch Transcript" from the Window menu and post the contents after you see the problem?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

  • Paul Dewars Member

    U asked for me to post my Transcrypt…

    it is as follows…do let me know asap.

    230 User logged in to 1 volumes, directory is "/pall".
    SYST
    215 MACOS Peter's Server
    PWD
    257 "/pall" PWD command successful.
    MACB ENABLE
    200 MacBinary Mode is enabled.
    PWD
    257 "/pall" PWD command successful.
    TYPE A
    200 Type set to A, ASCII transfer mode.
    PORT 192,168,1,2,20,153
    200 PORT command successful.
    LIST
    150 ASCII transfer started.

    Posted 19 years ago #

  • Paul Dewars Member

    I believe the last transcript i gave was not full. This is the full one.

    Connecting to *********** port 2121 (11/10/04 5:16:23 PM)
    220 NetPresenz v4.1 awaits your command.
    USER pall
    331 Password required.
    PASS
    230-Hi Palloo

    Drag the files you want to your desktop to start the download.

    U D

    ==========

    230 User logged in to 1 volumes, directory is "/pall".
    SYST
    215 MACOS Peter's Server
    PWD
    257 "/pall" PWD command successful.
    MACB ENABLE
    200 MacBinary Mode is enabled.
    PWD
    257 "/pall" PWD command successful.
    TYPE A
    200 Type set to A, ASCII transfer mode.
    PORT 192,168,1,2,70,243
    200 PORT command successful.
    LIST
    150 ASCII transfer started.

    Posted 19 years ago #

  • Jim Matthews Administrator

    Is it possible that you have the OS X firewall turned on (in the Sharing panel of System Preferences)? If so your options are either

    1) Turn off the OS X firewall (in the Sharing panel of System Preferences), or

    2) In Fetch, choose Preferences... from the Fetch menu, click on the Firewall tab, and check the "Use passive mode transfers (PASV)" box.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

  • Paul Dewars Member

    Yes,my firewall has been off & i have now checked the Passive Mode.

    Now i can still only see the folder but not its contents!!!

    Now what?

    Paul.

    Posted 19 years ago #

  • oldmachead Member

    Jim

    Thanks for your help. My nephew has been trying to retrieve a file from my FTP server and I suggested that he seek help from this forum.

    I am running NetPresenz on my OS9.2.2 Mac which is behind a router. Since I'm running it with port 2121, I have opened ports 2120 to 2122.

    He seems to connect alright and can even upload a file. However he cannot see the file for d/l ... so I'm wondering if there is a port that needs to be opened. (Perhaps there could be a port that needs to be opened in the Mac OSX firewall? I don't know OSX at all - I'm an OS9 diehard!)

    I realise that you may not be familiar with NetPresenz ... but any thoughts that you might have in this regard will be helpful. I did try posting at msg to NetPresenz but could not reach anyone there :-(.

    When my nephew tries a transfer, the NetPresenz log shows an error of -23008. I haven't a clue what that means!

    I've run out of options to help this transfer ... any assistance you can provide will be a great help.

    Thanks

    David

    Originally posted by Paul Dewars:

    Yes,my firewall has been off & i have now checked the Passive Mode.

    Now i can still only see the folder but not its contents!!!

    Now what?

    Paul.

    Posted 19 years ago #

  • Jim Matthews Administrator

    Paul: Could you post a new transcript?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

  • Jim Matthews Administrator

    oldmachead:

    As it happens I know NetPresenz well :).

    I think you are going to have trouble unless you open port 21 and run NetPresenz on that port. Plus your nephew will have to uncheck passive mode in his FTP client. Let me know if that does not work.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

  • Paul Dewars Member

    Hi,

    I Have just unchecked Passive Mode. Below is the Transcrypt.

    Fetch 4.0.3 System 0x1036 Serial ***************
    Connecting to ********** port 2121 (11/12/04 2:43:09 PM)
    220 NetPresenz v4.1 awaits your command.
    USER pall
    331 Password required.
    PASS
    230-Hi Palloo

    Drag the files you want to your desktop to start the download.

    U D

    ==========

    230 User logged in to 1 volumes, directory is "/pall".
    SYST
    215 MACOS Peter's Server
    PWD
    257 "/pall" PWD command successful.
    MACB ENABLE
    200 MacBinary Mode is enabled.
    PWD
    257 "/pall" PWD command successful.
    TYPE A
    200 Type set to A, ASCII transfer mode.
    PASV
    227 Entering Passive Mode (192,168,1,10,193,178).
    LIST
    150 ASCII transfer started.
    ftp_list: -3259 (state == GETTING_LIST)
    PWD
    257 "/pall" PWD command successful.
    PWD
    257 "/pall" PWD command successful.
    PWD
    257 "/pall" PWD command successful.
    PWD
    426 Connection aborted, local error (-23016).
    ftp_noop/ftp_pwd: -30000 (state == TICKLING)
    Connecting to *********** port 2121 (11/12/04 2:50:28 PM)
    220 NetPresenz v4.1 awaits your command.
    USER pall
    331 Password required.
    PASS
    230-Hi Palloo

    Drag the files you want to your desktop to start the download.

    U D

    ==========

    230 User logged in to 1 volumes, directory is "/pall".
    SYST
    215 MACOS Peter's Server
    PWD
    257 "/pall" PWD command successful.
    MACB ENABLE
    200 MacBinary Mode is enabled.
    PWD
    257 "/pall" PWD command successful.
    CWD /pall
    250 "/pall" cd successful.
    PWD
    257 "/pall" PWD command successful.
    TYPE A
    200 Type set to A, ASCII transfer mode.
    PASV
    227 Entering Passive Mode (192,168,1,10,193,183).
    LIST
    150 ASCII transfer started.
    ftp_list: -3259 (state == GETTING_LIST)
    PWD
    257 "/pall" PWD command successful.
    PWD
    257 "/pall" PWD command successful.

    [This message has been edited by Paul Dewars (edited 11-12-2004).]

    Posted 19 years ago #

  • oldmachead Member

    Jim

    That is cool ... haven't come across many folks who know NetPresenz well!! It's a great little application - as you already know!

    I will switch to port 21 and see if that helps. I notice from the new transcript that there is an error showing up ... hopefully you can interpret that and shed light on this problem!

    Thanks for all your help.

    [This message has been edited by oldmachead (edited 11-12-2004).]

    Posted 19 years ago #

  • oldmachead Member

    Yup. Port 21 works. Thanks, Jim

    I would never have figured that one out.

    Out of curiosity, why wouldn't it work on the non-standard port (2121)? The connection could be made, but that's all.

    Inquisitive minds need to know!!! :-)

    Thanks for all your help. It is very much appreciated.

    Posted 19 years ago #

  • Jim Matthews Administrator

    The explanation for why 21 works is rather involved, but here's a stab at it.

    FTP sessions involve two connections, the control connection and the data connection. First the client makes the control connection to the server, which is typically listening on port 21. Then anytime the client wants to transfer data with the server (for instance, to get a file list, or transfer a file), a data connection has to be set up The data connection is usually made to a different port every time, and there is no set port number for data connections.

    There are two ways to set up a data connection, passive mode (using the PASV command) and active mode (using the PORT command). In passive mode the server picks a port and the client connects to it. This won't work in your situation because your router is only passing one port through to your NetPresenz server, port 21 (or, previously, 2121). So if the client tries to make a data connection to the random port picked by the server that will fail.

    So you need to use active mode. In active mode the client tells the server "I'm listening at IP address x, port y" (where y is a randomly chosen port), and the server connects back to the client at that address and port. Simple enough.

    But what if the client, like many or most client machines on the Internet, is behind a router the performs Network Address Translation (NAT)? In that case the client does not have a real IP address that the server can connect to; it has an address like 192.168.1.5, which is only valid on its local network. So the client says "connect to me at 192.168.1.5", but the server can't do that.

    The problem appeared when people first started using NAT, so the router manufacturers figured out a work-around. When the router sees a PORT command going by (saying "connect to me at IP address x, port y"), the router re-writes the command so that it has the IP address of the router instead. Then, when the server connects back to the router, the router forwards that connection to the client, and everyone is happy.

    But the router only does this trick if it knows that the PORT command it sees is part of an FTP control connection, and it determines that by assuming that all connections to port 21 are FTP control connections, and connections to any other port aren't.

    So the short version of all this is: FTP connections from one computer behind a NAT router to another computer behind a NAT router only work because of a router trick that depends on the control connection going to port 21; and that's why 21 worked and 2121 didn't.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 19 years ago #

  • oldmachead Member

    JIm

    That is a most lucid explanation - even I can understand that.

    I am most appreciative of your help.

    Thanks a million.

    Cheers

    Posted 19 years ago #

  • Paul Dewars Member

    Hi Jim,

    As my Uncle has told u,everything is now in function & i am able to view the files & transfer files well now.

    If i ever do have more problems i will make sure i turn to u.

    Thankyou so much Jim,

    All the best,

    Paul.

    Posted 19 years ago #

Topic closed

This topic has been closed.