View Full Version : Vb verificare le porte
texerasmo
27-05-2004, 13:25
devo verificare se una determinata porta 9090 è su in java l'ho fatto ma in vb non so da dove cominciare potete aiutarmi?
texerasmo
27-05-2004, 17:43
up
non posso usare netstat
texerasmo
28-05-2004, 17:14
up
Non ti assicuro il 100% del funzionamento, io ho fatto de test e funzionano.. cmq...
Metti sulla form il controllo WinSock di VB6
e poi fai questo codice:
Private Sub Command1_Click()
On Error Resume Next
Winsock1.LocalPort = "9090"
Winsock1.Listen
If Err.Number <> 0 Then MsgBox "PORTA UTILIZZATA"
End Sub
texerasmo
01-06-2004, 10:41
tnk provo e ti faccio sapere
texerasmo
01-06-2004, 10:55
Metti sulla form il controllo WinSock di VB6 ..
non ho questo controllo :(
Impossibile :p , fa parte del pacchetto base di VB
cerca: Microsoft Winsock Control :)
texerasmo
01-06-2004, 16:01
tnk hai ragione :D
cercavo direttamente WinSock
vBulletin® v3.6.4, Copyright ©2000-2026, Jelsoft Enterprises Ltd.