The neistat command can display current connections on the local system as well as ports (i.e., services) that are listening for requests. Neistat provides a lot of information on its own. It provides you even more with the -an option.