|
-
Nov 1st, 1999, 07:46 AM
#1
Thread Starter
Addicted Member
Does anyone know how to create a FTP Server using winsock in VB. I would kindly appreciate any help you have to offer.
Thanks
-
Nov 7th, 1999, 03:55 PM
#2
Lively Member
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
-
Nov 9th, 1999, 07:09 PM
#3
New Member
FTP uses port 21, not 23...
[This message has been edited by sydneyfong (edited 11-10-1999).]
-
Nov 19th, 1999, 03:20 PM
#4
Member
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]
-
Nov 28th, 1999, 06:03 AM
#5
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|