to know the ip address ..u can use command netstat -n ,
at the command prompt. if u want to know the port numbers then u can use command

netstat -n -a at the command prompt . this will list all the ip address and ports connected to your computer.

for more information go to sites like :-

www.lameindustries.org

there u can find some good tutorials...

hope this helps..

intruder...