netstat will do that.
netstat -an show you every established/listening connection (so open port and people connected to these ports).
use a little script like the following to know what is conected to you
Code:
#!/bin/sh
netstat -an | grep "ESTABLISHED"