Hi, Pavel
>From telnet.exe it works. (Address 10.1.220.1 or 127.0.0.1, port 2001)
>From second form, no.
I've looked through your code and found what's not correct.
Unlike FoxPro classes ActiveXes can have methods and events with the same name.
VFP6 gives us a possibility to use both methods and events. It "adds" the "object" property to the OLE object sintax. MSWinsock.Winsock have both Connect method (we invoke it in order to initiate a connection) and Connect event (it fires when connection is established). So, inside VFP yourtcpobject.Connect means "run code placed in Connect event". And yourtcpobject.object.Connect means "invoke Connect method".
So, it's anoter reason to upgrade, isn't it?