Douglas Farias Expert Licensed User Longtime User Aug 9, 2014 #1 Hi i make this to check the ports of my vps ip Code: Copy Sub btporta_Click Socket1.Connect(ipporta.Text,porta.Text,3000) End Sub here is how i get the response Code: Copy Sub Socket1_Connected(Connected As Boolean)As Boolean If Connected Then Msgbox("Port OK","") Socket1.Close Return True Else Msgbox("Port Closed!", "") Socket1.Close Return True End If End Sub in the 1° time this works fine, port 80 = PORT OK but whan i try execute Socket1.Connect(ipporta.Text,porta.Text,3000) again i have port closed all time why this works only 1 time?, i have try use socket.close but dont work too *-* 1 time = port OK later 1 time = port closed
Hi i make this to check the ports of my vps ip Code: Copy Sub btporta_Click Socket1.Connect(ipporta.Text,porta.Text,3000) End Sub here is how i get the response Code: Copy Sub Socket1_Connected(Connected As Boolean)As Boolean If Connected Then Msgbox("Port OK","") Socket1.Close Return True Else Msgbox("Port Closed!", "") Socket1.Close Return True End If End Sub in the 1° time this works fine, port 80 = PORT OK but whan i try execute Socket1.Connect(ipporta.Text,porta.Text,3000) again i have port closed all time why this works only 1 time?, i have try use socket.close but dont work too *-* 1 time = port OK later 1 time = port closed
Douglas Farias Expert Licensed User Longtime User Aug 9, 2014 #2 Fixed need to initializate again Code: Copy Sub btporta_Click Socket1.Initialize("Socket1") Socket1.Connect(ipporta.Text,porta.Text,3000) End Sub Upvote 0
Fixed need to initializate again Code: Copy Sub btporta_Click Socket1.Initialize("Socket1") Socket1.Connect(ipporta.Text,porta.Text,3000) End Sub