I ahve recently been acquainting myself with the WinSock control. I have used the tutorial from http://www.vbweb.co.uk\controls\win_sock.htm to create a WinSock program that uses TCP/IP protocol to communicate between two forms on the same computer. It works. When I tried similar code but instead having the RemoteHost property set to another computer the SendData method gives me a Run-Time Error # 40006. One thing I did notice is that on the project that works WinSock.State = 7 and on the one that doesn't WinSock.State = 9. I'm pretty sure that the errors lies there because there is no error after the Connect Method. Please give an help you can. If you have any idea or just shoot off a few ideas you might reach me on ICQ, nick name = Captain Pinko.
thnx




Reply With Quote