Jim,

This is off the top of my head, but you could simply try to open the
correct port on the IP address for each of these protocols.  I believe HTTP
is 80, FTP is 21, Telnet is 23, so I'll use those for my example:

ips: [
    10.5.5.1
    10.5.5.41
    10.5.5.47
    10.5.5.48
]

ports: [
    "HTTP"      80
    "FTP"       21
    "Telnet"    23
]

foreach ip ips [
    foreach [name port] ports [
        either error? try [a: open join tcp:// reduce [ip ":" port]][
            print [ip "does NOT have a port of type" name]
        ][
            print [ip "DOES have a port of type" name]
            close a
        ]
    ]
]

Actually, I just tested this and it works great!  Pretty neat if I do say
so myself.  I'll post this to www.rebol.org.

Later!


On 5-Oct-1999/12:33:20-5:00, [EMAIL PROTECTED] wrote:
>
>I would like to test a range of IP address to see if they have HTTP,
>FTP, SMTP, POP, NNTP, and Finger.
>
>I would be thankful for any help.
>
>Jim
>
>
>
>
-- 
                           Bohdan "Bo" Lechnowsky
                   Technical Support / Quality Assurance
           REBOL Technologies 707-467-8000 (http://www.rebol.com)
          Download the REBOL Messaging Language for all Platforms

Reply via email to