Results 1 to 5 of 5

Thread: Winsock based FTP program ... need your help!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    94

    Winsock based FTP program ... need your help!

    Hello to all Forum Members!

    Currently I'm facing one very serious problem with my FTP program. I'm using the same vbIP's FTP Client Library (www.vbip.com) in that code which is purely WinSock based Lib. The problem is that it works great on all of my PCs; but does not fetch Server Directory Structure on my client's system. The errors which he is getting at his place are the errors which are generated by vbIP's Lib when either the system is working offline or anyhow if the connection with FTP is not established.

    I asked my client regarding the way he gets connected to Inernet. His reply is as follows ..

    =======================================================================
    Satellite - high speed broadband, goes through a router after the modem so I can run 1 laptop and two desktops off the same modem - Is it a direct-to-PC connection?
    =======================================================================

    Unfortunately I don't have this setup; but I was wondering if the way you get connected to Internet will really affect the FTP functionality. Moreover, he uses WS_FTP application and that works smooth on his PC. I observed if there is any special setting in WS_FTP regarding FTP connection but couldn't find any which may give me some clue to improve my application's FTP code!

    I'm totally blocked and not finding any solution or hint regarding this issue. Please guide me how to proceed and what can be the problem? If you have any FTP solution which has worked in such environment (Visual Basic Code or DLL/OCX developed in any language and freely usable in Visual Basic 6.0), then please let me know. Please help me in this ... friends, I'm totally dependent on you all as I really have consumed all of my options & alternatives.

    Eagerly waiting for your valuable reply ...

    Thanks & Regards,

    Ruturaj.


    *PS. I was testing vbIP's FTP Tutorial 3 on his environment and that failed! I tried Chilkat FTP component and that failed! I wrote my INET API based FTP code and that failed as well! I tested other Code Libs available on Planet Source Code and none of them worked! Error is the same ... no FTP connection established, sending FTP command to server failed! I'm just not finding any solution on this at all and completely depending on you all!

  2. #2
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Winsock based FTP program ... need your help!

    Did you try passive mode?
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    94

    Re: Winsock based FTP program ... need your help!

    Hello!

    Thanks for your reply. Yes, I tried Passive Mode. In fact I have provided the check box option to switch between Active and Passive modes. But in both cases, the application is not reaching out the FTP server. The interesting thing is that I checked with him his WS_FTP configuration and nothing special in that as well! I thought that in router based environment he might be giving some other IP address than actual FTP server host; but that's not the case. He is using the same FTP server host info as he is using with my application. Also, the Port number what he has specified in WS_FTP is the same (21) as what he has specified in my code!!! So, what else can be the reason?

    Do you have the same environment? Will you please run the code if I give that to you? I'm absolutely not finding any solution on this ... please help me in this.

    Regards,

    Ruturaj.

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Winsock based FTP program ... need your help!

    The programs you're having problems with, that are running on his computer - ftp clients or ftp servers? From your description it sounds as if they're clients, but the problem sounds like a "server behind a NAT router" problem.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jun 2005
    Posts
    94

    Re: Winsock based FTP program ... need your help!

    Yes, this is a FTP Client program. Will you please tell me more about "Server behind NAT router"? How can I get the stuff done, if this is a situation? I wonder how WS_FTP application manages to work smooth in this problematic situation?!

    For reference, I have uploaded my FTP code testing sample application (compiled). Would like to see the source code for it? Please let me know.

    Regards,

    Ruturaj.
    Attached Files Attached Files

Posting Permissions

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



Click Here to Expand Forum to Full Width