I asked this question on Ubuntuforums, and I got a very nice reply.
There are two ways of doing this:
- Simply use the command: sudo lsof -Pni
- You can use a tool called trojanscan (homepage here)
Personally, I prefer the first method. But system administrators may like TrojanScan better, has it has more features, and you can choose to ignore the usual processes.
Have fun

-Aku