This is really driving me crazy, ive spent about an hour trying 2 work out whats wrong!!! And its probablyreally simple.

Basically heres the code;

Winsock1.RemoteHost = 10.0.0.2
Winsock1.RemotePort = 1985

Winsock 1.Connect

#Continued#

Any way, When run, it returns this error:

"Run Time Error 40020, Invalid Operation at current state"

The line that causes the error is;
"Winsock1.RemoteHost = 10.0.0.2"

I cant figure out why its happening!!!!!

If you can help, please reply, thanks