Thread: FTP server

  1. #1
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    FTP server

    I'm trying to set up any ftp server that can be acesed over the internet. It works over lan currently but over the net stalls on "150 Opening ASCII mode data connection for /bin/ls (320 bytes)."
    I setup port forwording on my router so thats not the problem. I'm using GuildFTP v0.999.13 for the ftp server. What do you think the problem is?
    int a; don't make a program without it.

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Are you using active or passive mode?

    Remember that by default the port 21 connection is just a command/control connection. It has to open another port for the actual transfer. I don't remember off the top of my head which direction the connection is made but I believe its server to client.

  3. #3
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109
    WOW, thanks for the fast reply. I'm not sure what mode i'm in tho. I using port 1234 for my ftp. I'll try looking around to see what the other port is.
    Last edited by Josh Kasten; 12-18-2004 at 04:45 PM.
    int a; don't make a program without it.

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Well the other port can be any port inside a fairly large range. You should test it with another computer instead of your network that way you can remove router from the picture. Once you know it works inside of your network then you can test it with a computer(s) outside of your network.

  5. #5
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109
    it works in the network but i can't connect to it thought the net. I'm wirelessly testing with my friends network and it stalls on after it connects.
    int a; don't make a program without it.

  6. #6
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Well you can use a packet sniffer and look at the traffic and see what port it is telling the remote side to use. For me I justed did a port forwarding from public port 21 to my computer's port 21 and that was good enough.

  7. #7
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    Smile

    I found the port with a packet sniffer from download.com and its 1116. Thanks for all your help.
    int a; don't make a program without it.

  8. #8
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    josh.....a lot of ISP's block incoming requests on port 80... why? because they want you to upgrade to a "Business Account" in which you pay 50 bucks a month more for....

    call your ISP and ask if they allow you to do this.. (btw, if you try to hack around it, it may be illegal and probably states so in your contract or terms of use)
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  9. #9
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    i'm sorry...i meant port 21....they also block that one as well..
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  10. #10
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109
    I setup my ftp using port 21 they didn't block it for me plus didn't even know isp block things like that. It can't be illega for me then cuz it works with 21. I don't think i can help you with this question misplaced but i bet someone else here could.
    int a; don't make a program without it.

  11. #11
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Its actually pretty easy for ISPs to block certain port connections. Think of the packets as a relay race. All the ISP has to do is not relay the information once it hits their equipments. The get around is to just use a non default port.

  12. #12
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    heheh...i asked the question for you - (..."why [, you ask]?", because your ISP...)

    i did however misread your original post
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

  13. #13
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    Heh, I just checked with my ISP. They block 80, 46, 47, and 58 or something like that. The only one I care about is 80, which ........es me off. But they don't block 21, which is pretty cool.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. file download through ftp using C under Unix
    By Mohit_t in forum C Programming
    Replies: 3
    Last Post: 06-12-2008, 02:00 PM
  2. FTP and Ident Server :: Winsock
    By kuphryn in forum Networking/Device Communication
    Replies: 2
    Last Post: 03-13-2004, 08:16 PM
  3. Visual Studio and FTP Server...
    By Grayson_Peddie in forum Networking/Device Communication
    Replies: 0
    Last Post: 09-03-2003, 12:31 PM
  4. FTP Server :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 10-03-2002, 07:14 PM
  5. socket question
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 07-19-2002, 01:54 PM