Pure FTPd

This is a discussion on Pure FTPd within the Tech Board forums, part of the Community Boards category; So anyway I've setup pure-ftpd on my Fedora machine so I can upload files directly from college without emailing myself ...

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    Pure FTPd

    So anyway I've setup pure-ftpd on my Fedora machine so I can upload files directly from college without emailing myself attachments all the time.

    It's all going well until I try to ftp into it from another machine - ftp localhost on the server works fine, but if I try my machine and 'ftp <ip>' it doesn't work. Could it have anything to do with the fact my two machines are on the same router; same IP address?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,255
    If your computer and the FTP server are connected to the same router ("behind" the router), then they will have different IP addresses within the router's subnet.

    e.g. your server may be 192.168.0.2 and your computer may be 192.168.0.3.

    It's only if you're attempting to get hold of either from a computer connected externally to the router do they have the same IP (the router's IP).

    Time for some pingage if I were you.

  3. #3
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    Have you set up port-forwarding and told the server to accept connexions from outside?
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  4. #4
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Quote Originally Posted by -=SoKrA=-
    Have you set up port-forwarding and told the server to accept connexions from outside?
    I'm pretty sure port forwarding is on but I couldn't tell you about accepting connections. Could you explain how I can do this?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  5. #5
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    In the config file, look at which addresses it binds to. If it's 0.0.0.0, then it'll accept from anywhere, so it's alright, otherwise use your local IP. I think many servers' default config only bind to loopback.

    You could try doing 'telnet <ip> 21' to check if the server answers or not. Does is timeout or is the connection rejected?
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  6. #6
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Right I just tried telnet from my other machine and it didn't work. First my ip address then my gateway address thingy (192.168.1.1).

    I assume you mean /etc/pure-ftpd/pure-ftpd.conf by the conf file? The only lines I found that might be the problem are:

    # Force an IP address in PASV/EPSV/SPSV replies. - for NAT.
    # Symbolic host names are also accepted for gateways with dynamic IP
    # addresses.

    # ForcePassiveIP 192.168.0.1


    # IP address/port to listen to (default=all IP and port 21).

    # Bind 127.0.0.1,21
    I'm not too hot on networking stuff - I need somebodies help!
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Calling a pure virtual function from a constructor...
    By starcatcher in forum C++ Programming
    Replies: 4
    Last Post: 02-10-2009, 08:12 AM
  2. Calling IRichEditOle interface methods
    By Niara in forum C Programming
    Replies: 2
    Last Post: 01-16-2009, 12:23 PM
  3. errors initializing D3D
    By Vacation Guy in forum C++ Programming
    Replies: 3
    Last Post: 08-07-2005, 12:20 PM
  4. Pure virtual implementation, or not.
    By Eibro in forum C++ Programming
    Replies: 2
    Last Post: 03-19-2003, 07:05 PM
  5. Information Regarding Pure Virtual Functions
    By shiv_tech_quest in forum C++ Programming
    Replies: 6
    Last Post: 01-29-2003, 03:43 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21