I am trying to learn how to use WinSock. Logically I think it is easy, you just need to set up the ports and the rest and things should work (right?)

Anyway, I send a message through a port, I get this message (Run-time error 40006 'Wrong protocol or connection state for the requested transaction or request'. What does this mean? Please help!

Something on the side:
I'm trying to use this instead of DCOM, if you could give a hand with DCOM, I would gladly accept. Thanks.