FTP port and passive modes
Results 1 to 2 of 2

Thread: FTP port and passive modes

  1. #1
    Registered User
    Join Date
    Nov 2000
    Location
    Fountain Valley, CA
    Posts
    507

    FTP port and passive modes

    Sorry for all the FTP questions. I just wanted a little clarification and confirmation on if I am understanding the difference between PASV and PORT modes of FTP servers.

    Is PORT mode the same as "active" mode?

    When the client is running in active/PORT mode, it tells the server to which port to send data, correct?

    In PORT mode, does the client also tell the server the IP to which to send data? and if this is the case, if my client is connecting from behind a router and has a private ip (192.168.x.x), will port mode not work, as it will tell the server to send data to an unreachable IP?

    I'm troubleshooting a connection in which this is happening, and i just want to confirm whether this makes sense as an explanation. My client is sending this data to the server for the port command:

    PORT 192,168,1,105,4,97

    And then I can't get anything from the LIST command. I assume because the server is trying to send data to 192.168.1.105 (my private IP), but it obviously can't get here.

    Is my assessment correct?

  2. #2
    Registered User Gollo's Avatar
    Join Date
    Sep 2001
    Location
    Grand Rapids, Michigan US of A
    Posts
    2,383
    Yep pretty much. Why not just use passive?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •