There is a cool freeware program called lsof. While it can't tell you exactly what a socket is doing, it can at least display the pid of the process which is using it. So if one or more sockets are...
The ESTABLISHED sockets have a process at each end and they are communicating. Eventually the processes will invoke close(2) or shutdown(2) on the sockets and they will go away. You could also kill...