For some reason when i run winsock and use

sock1.Connect startip.Text, Module1.Port

I get a error of 40020 'invalid operation at current state' and i dont know why can anyone help?

I appreciate it..