主题:关于VB的Winsock连接
连接局域网可以但是外网连不上(外网连外网)
Private Sub Timer1_Timer()
If Winsock1.State = sckClosed Then
Winsock1.RemoteHost = "119.165.186.25"
Winsock1.RemotePort = 4444
Winsock1.Connect
End If
End Sub
Private Sub Timer1_Timer()
If Winsock1.State = sckClosed Then
Winsock1.RemoteHost = "119.165.186.25"
Winsock1.RemotePort = 4444
Winsock1.Connect
End If
End Sub