In Node, close all connections when the app closes completely:Ĭonsole.log('Mongoose disconnected on app termination') I should keep that closed unless I need it. Mongod is MongoDB listening on port 27017. NOTE: Drag the scroll bar to see what is beyond what is displayed. UDP is often used with time-sensitive applications, such as audio/video streaming, where dropping some packets is preferable to waiting for delayed data. UDP (Datagram Protocol) is connectionless and does not guarantee reliable communication it’s up to the application that received the message to process any errors and verify correct delivery. Guaranteed communication/delivery is the key difference between TCP and UDP on ort 53. TCP guarantees delivery of data and that packets will be delivered in the same order in which they were sent. TCP enables two hosts to establish a connection and exchange streams of data. TCP (Transmission Control Protocol) is the most commonly used protocol on the Internet and any TCP/IP network. Linux requires root on operations for well-known ports below 1024. NOTE: All options are shown by this command:ĭrag your Terminal window wider to remove word-wrap.ĬOMMAND PID USER FD TYPE DEVICE SIZE NODE NAME Piping to grep filters out only lines containing “LISTEN”. This is because the command already takes several seconds to run. “-nP” is a combination of “n” for no resolution of IPs to hostnames using DNSĪnd “P” for no resolution of Port names from numbers. Without any options specifications, lsof lists all open files belonging to all active processes. “lsof” is a contraction for “list open files”. PROTIP: If you’ll be using this often, create an alias such as of. In a Terminal command line: lsof -nP +c 15 | grep LISTEN Type the name of utilities that are buried, such asĬlick the keyboard return/enter key to launch the Network Utility app.Įnter the IP (such as 127.0.0.1), localhost, or domain nameĬhoose scan to see what ports the server responds to. Spotlight on Network Utility to List PortsĪpple’s macOS Spotlight is like Window’s Search omni-box. 17 = UDP (User Datagram Protocol) used by VOIP.6 = TCP (Transmission Control Protocol).2 = IGMP (Internet Group Management Protocol) to estab.1 = ICMP (Internet Control Message Protocol).9411 = Zipkin Distributed Tracing Server.548 = AFP (Apple Filing Protocol) elim.445 = SMB (Server Message Block) from Azure Files.No port for ICMP RFC 792 Pings RFC 1122 as it’s in IP transport layer TLSġ43/993 = IMAP (Internet Message Access Protocol) files remain on server / TLS 110/995 = POP (post Office Protocol) clear text auth.25/465 = SMTP (Simple Mail Transfer Protocol) / TLS VIDEO.
#MAC OS LIST OPEN PORTS LSOF WINDOWS#
See My notes on Windows RDP.Ģ1/990 = FTP and FTPS which adds SSL & TLS to encryptģ389 = RDP (Remote Desktop Protocol) from Microsoft Port 3389 is used for communicating with Microsoft’s RDP (Remote Desktop Protocol) on Windows machines.
PAT (Port Address Translation) maps ports.: Which consumes electricity and thus reduce battery life. Having ports listenting to outside traffic also takes CPU effort, This is perhaps the most important potential vulnerability.
#MAC OS LIST OPEN PORTS LSOF HOW TO#
Here is how to see what ports are open listening on a server.