Port 445: What's Using It and Is It Safe to Close?

Port 445 carries SMB file sharing and has a notable security history. Here's what listens on it on a Mac, whether it's safe to close, and how to check.

Port 445 carries SMB, the protocol for network file sharing. On a Mac it’s open when File Sharing is turned on, and it’s also used when you connect to a shared drive. It has a notable security history, so it’s worth understanding.

What typically listens on port 445

  • macOS File Sharing: Enabling System Settings > General > Sharing > File Sharing starts an SMB server on 445 so other devices can mount your shared folders.
  • Connecting to network drives: Mounting a NAS or a Windows share opens an outbound 445 connection.
  • Windows interop: 445 is the standard Windows file-sharing port, so Mac-to-PC sharing relies on it.

Is it safe to close?

Closing 445 is safe. Nothing in macOS depends on it except File Sharing itself. If you don’t share folders over the network, turn the feature off:

System Settings > General > Sharing > File Sharing (off).

That’s cleaner than killing a process, since the sharing service is system-managed and would otherwise restart.

Is it suspicious?

This is the port where “is it suspicious” actually matters. SMB has been the entry point for major malware: the EternalBlue exploit and WannaCry ransomware both targeted it. On your own trusted network with File Sharing you deliberately enabled, an open 445 is fine. What you never want is 445 reachable from the public internet, or listening when you never turned on File Sharing. If you see it open and don’t share files, check Sharing settings and close it.

How to find what’s on port 445 on macOS

lsof -i :445

To confirm whether File Sharing is the source, check Sharing settings rather than killing the process. macOS runs SMB through a system service, so disabling the feature is the right way to close the port.

Portie shows port 445 and the process behind it in its live list, and its remote scanner can check whether 445 is open on another host, useful for confirming a machine isn’t exposing SMB it shouldn’t.

Common questions

Is it safe to close port 445 on my Mac?

Yes. Port 445 is open when File Sharing is on. If you don't share files over the network, turn off File Sharing in System Settings > General > Sharing. macOS doesn't need 445 for anything else.

Why is port 445 open?

macOS opens 445 when you enable File Sharing (SMB), which lets other machines mount your shared folders. Connecting to a network drive also uses outbound 445.

Is port 445 a security risk?

445 has a long history of worms and ransomware; EternalBlue and WannaCry both targeted SMB. On a trusted network with File Sharing you control it's manageable, but it should never be exposed to the public internet.

Try Portie Free

See every open port on your Mac, which app owns it, and kill processes from the list.

Download Free