If Me.Winsock1.LocalIP = "127.0.0.1" Then
MsgBox "NOT Connected"
Else
MsgBox "OK Connected"
End If

همین! :coolsmiley02: