Jammer Posted March 1, 2005 Posted March 1, 2005 How could I make a script witch checks is there a 4354 port open of some IP? What stuff sould I use?
tamir Posted March 1, 2005 Posted March 1, 2005 get Larry's au3xtra.dll then use this code: Dim $IP, $Port DLLCall(@ScriptDir & "\au3xtra.dll","int","TCPStartUp") $ConTest = DLLCall(@ScriptDir & "\au3xtra.dll","int","TCPConnect", "str", $IP, "int", $Port) If $ConTest[0] > 0 Then MsgBox(0, "", "The port is open") DLLCall(@ScriptDir & "\au3xtra.dll", "int", "TCPCloseSocket", "int", $ConTest[0]) Else MsgBox(0, "", "Port isn't open") EndIf DLLCall(@ScriptDir & "\au3xtra.dll", "int", "TCPShutDown")
Jammer Posted March 1, 2005 Author Posted March 1, 2005 hmm sometimes it lags very much or just freezes.... u have to end the task... anyway to bypass that? make a timeout or something...
Helge Posted March 1, 2005 Posted March 1, 2005 hmm sometimes it lags very much or just freezes.... u have to end the task...anyway to bypass that? make a timeout or something...<{POST_SNAPBACK}>If you're using it in a loop, you should test using a DLLOpen in the beginningof your script.. Good luck !
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now