I am not sure but How does Portscanning works? can be useful to you.

Thanks
Shabbir Bhimani