Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ASP to query a series of IPs and Redirect to one Listening

Status
Not open for further replies.

captainnapalmse

Technical User
Jul 2, 2003
12
US
I am not entirely sure what needs to be done with what I'm trying to do. I have worked with ASP in that past, but it has been quite some time, and I was never completely fluent in its workings. Here is what I am trying to do:

I have PortQryV2 from Microsoft. I want to develop an ASP page that a user can go to which will automatically use PortQry to search for an IP that is "Listening" across a range. I then want the ASP page to redirect the user to that IP based on the results from the query. I know that PortQry, run in silent mode, will return a 0 for listening, or a 1 for not listening on a specified port. What I don't understand is how to put it all together - basically, the code I've found so far doesn't properly call PortQryV2, or receive a value from the program. I'm also not entirely sure how to tell the ASP page which IP to go to. I tried coding it so that it was pointing to "IP.IP.IP.Counter", where Counter mimicked the end of the functional IP address (the first three pieces are all the name).

Any assistance, guidance, comments, or suggestions in this will be greatly appreciated.

Thanks in advance.

//sp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top