10-28-2001, 06:08 PM
Please help me I really need to "LEARN" the winsock control not see source codes and pre-made projects..I need an explaination .Is it possible to send a message to your own IP?..cuz I need to test it..Please help me!!!!!!
Nothing has worked!!!!!!!!!!!!!!!!!!!!
10-28-2001, 06:11 PM
Sure it is possible. But you have to have two controls running, and I would
think they need to be running in separate programs (not 100% positive
about the last part.)
10-28-2001, 06:21 PM
yeah,Ihad two instances of vb running and I still cant get a thing right..
even with step by step instructions...
10-29-2001, 03:25 AM
Does it work with the loopback address (127.0.0.1)?
10-29-2001, 05:04 PM
set one to listen on port 127.0.0.1:12345, then get another to connect to the same.
I think my tutor on Winsock in the Tutors corner might help.....
11-01-2001, 08:52 PM
here is code i wrote for tutorial purposes on multi connections w/ winsock. it's "short and sweet" which is apparently what you need
11-02-2001, 01:36 PM
So where's the code? images/icons/wink.gif
11-03-2001, 05:03 PM
for me, winsock never worked though VB IDE all that great, i.e. some feature ( i forgot which ones) did work correctly. so i use to comply the project when i wanted to try it.
11-06-2001, 07:27 AM
As you said quite limited, but there was one error there. Not in the code but in a comment. The comment in the connectionRequest event says that setting the LocalPort to zero makes it use the same port you're listening on. This is incorrect. Setting it to zero forces it to chose another random port number. It prevents you from getting "Address in Use" errors when multiple clients try to connect (they can not all be connected to one port images/icons/smile.gif).