Netstat

From wikinotes

netstat shows TCP ports and their TCP-state.

FreeBSD

netstat -an               # display netwk connections (listening, connected, etc)
netstat -4 -f inet -n -r  # display routing table