can anyone give me the code which scans all the ports on a remote host and tell which r pen and which r closed.