Results 1 to 5 of 5

Thread: Creating A FTP Server Using Winsock

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    NY, USA.
    Posts
    240

    Post

    Does anyone know how to create a FTP Server using winsock in VB. I would kindly appreciate any help you have to offer.

    Thanks

  2. #2
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126

    Post

    You can make a FTP Server however, I tried it and the Winsock doesnt seem to like
    accepting a non visual basic winsock request, only works for vb winsock connections.

    Make a new form and add Winsock1.

    Private Sub Form_Load()
    Winsock1.listen Winsock1.localhost, 23
    End Sub

    Private Sub Winsock1_ConnectoinRequest(requestID as long)
    'there is the problem occurs
    Winsock1.accept requestID
    End Sub

    Thats the basics, it should work for any TCP/IP connection on that port, but
    for some reason it doesnt, However when you make the conectoin attempt from any winsock
    protocol, for example, telnet or even an FTP client, it doesnt work.

    When its done from a Visual Basic Winsock control it works fine.

    If you can figure out why, PLEASE let me know, as I want to do some
    Server development progams, but cant as of the above problem.




    ------------------
    Regards,

    Paul Rivoli
    [email protected]
    http://users.bigpond.com/privoli

  3. #3
    New Member
    Join Date
    Jul 1999
    Location
    HKSAR
    Posts
    9

    Post

    FTP uses port 21, not 23...

    [This message has been edited by sydneyfong (edited 11-10-1999).]

  4. #4
    Member FirePoweR's Avatar
    Join Date
    Apr 1999
    Posts
    32

    Post

    I made a very basic web server with vb and winsock and the connections from the non-vb web browsers work fine.

    ------------------
    -FirePoweR-
    [email protected]


  5. #5
    Addicted Member
    Join Date
    Jan 1999
    Posts
    173

    Post

    To do something properly, you need to create an array of Winsock controls. The VB Books online has some useful info on this.

    ------------------
    "To the glory of God!"

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