Maz 0 Posted September 12, 2011 Hi I am trying to create a scipt that will look into a ,csv file file for certain Ips then connect to each remote host and look to see if a specific port is running and give some type of feedback any ideas ? Thanks Share this post Link to post Share on other sites
rcmaehl 50 Posted September 12, 2011 Hi I am trying to create a scipt that will look into a ,csv file file for certain Ips then connect to each remote host and look to see if a specific port is running and give some type of feedback any ideas ? Thanks Use TCP functions and if the port succeeds then it is open. My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My ProjectsCisco Finesse, Github, IRC UDF, WindowEx UDF Share this post Link to post Share on other sites
Maz 0 Posted September 12, 2011 Hi Thanks for the response here is what i have so far in the Ip can i specify a remotelist .csv $g_IP = "" ; Start The TCP Services ;============================================== TCPStartUp() ; Create a Listening "SOCKET" ;============================================== $MainSocket = TCPListen($g_IP, 58264 100 ) If $MainSocket = -1 Then Exit ; look for client connection ;-------------------- While 1 $ConnectedSocket = TCPAccept( $MainSocket) If $ConnectedSocket >= 0 Then msgbox(0,"","my server - Client Connected") exit EndIf Wend Share this post Link to post Share on other sites