REM find out who is using which TCP/IP sockets
netstat -o

rem you might get a result like this:
rem Proto  Local Address          Foreign Address        State           PID
rem TCP    192.168.0.101:49181    209.34.241.67:http     ESTABLISHED     4908

Rem you can then get more information about what that PID means
TaskList /o