In this short tutorial I will show how to check TCP/UDP open port or services in FreeBSD box. For checking open port or services which uses port in FreeBSD simply issue the following commands. ####1. check TCP connection # sockstat -Ptcp ####2. check UDP connection # sockstat -Pudp Combine with grep to search port used by specific service or service which using specific port. ####3. use grep to get service or port # sockstat -Ptcp | grep # sockstat -Ptcp | grep -i # sockstat -Pudp | grep # sockstat -Pudp | grep -i