I tried the script by entering the I.P. address & the port. But, for both valid & invalid ports it gives the same message "System did not respond".
I copied the entire code of "MX Record lookup help " & also of Allen, but was unlucky to get any end result. i dont think i missed anything here.

I wud like to repeat my problem once again. i have a I.P. address. I want to design a script given I.P & port, i do the telnet. If i get the error message "Could not open connection to the host", it means the port is NOT opened.
I will record the result from the window.

I think i m behaving like a dumb, but sadly, i m not understanding what to do.
Plz. help.