Does anyone know how to create a FTP Server using winsock in VB. I would kindly appreciate any help you have to offer.
Thanks
Printable View
Does anyone know how to create a FTP Server using winsock in VB. I would kindly appreciate any help you have to offer.
Thanks
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
FTP uses port 21, not 23...
[This message has been edited by sydneyfong (edited 11-10-1999).]
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]
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!"