|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Winsock error
Hi,
I use the following code to connect to a port. [code] Winsock.Protocol = sckTCPProtocol Winsock.RemoteHost = "127.0.0.1" Winsock.RemotePort = 15151 ' this is the port it must be the same as the server Winsock.Connect But i get the following error "Run Time Error '40006' Wrong Protocol or connection state for the requested transaction or request" is displayed. I even tried by removing the line "Winsock.Protocol = sckTCPProtocol". Yet i get the same error. Can anyboby help me out. Thanks in Advance. |
|
#2
|
||||
|
||||
|
Try this:
Code:
Winsock.Close Winsock.RemoteHost = "127.0.0.1" Winsock.RemotePort = 15151 ' this is the port it must be the same as the server Winsock.Connect (you really don’t need to define the protocol, TCP is default)
__________________
LozWare Website Directory Whooo! Free submissions, no recip needed. I'm a nice guy
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Winsock error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|