Hi All,

I have got some breakthrough. I was able to set the logging option.
I didnt know that it is done by typing ONLY telnet on the command prompt.
The log file was successfully created.

Thus, I will check whether the log file is empty or not, which in turn will imply that port is opened or not.
BUT...,this solves the problem for only port 23(telnet port); apart from PORT no. 23, for all other ports, nothing is written into the log file.

So, I will have to find a way of differentiating the OTHER ports. I am looking into it.