Windows FileShare Ports: Complete Guide to File Sharing Ports 2026

Windows FileShare Ports: Complete Guide to File Sharing Ports 2026

9/7/2026

Windows FileShare Ports — Complete Reference

Windows file sharing uses specific network ports for SMB, CIFS, and NetBIOS protocols. If your Windows fileshare is blocked, it's usually because one of these ports is closed in your firewall.

All Windows FileShare Ports

ProtocolPortTypePurpose
SMB (modern)445TCPMain Windows file sharing port
CIFS445TCPSame as SMB — legacy name
NetBIOS Session139TCPLegacy SMB over NetBIOS
NetBIOS Name137UDPNetwork name resolution
NetBIOS Datagram138UDPBroadcast messages
FTP21TCPFile Transfer Protocol
SFTP/SSH22TCPSecure file transfer
HTTPS (browser)443TCPBrowser-based file sharing

Main Windows FileShare Port: 445

Port 445 (TCP) is the primary Windows fileshare port used by SMB and CIFS. All modern Windows file sharing goes through this port. If port 445 is blocked, Windows network file sharing will not work.

How to Open Windows FileShare Ports in Firewall

  1. Open Windows Defender Firewall → Advanced Settings
  2. Click Inbound Rules → New Rule → Port
  3. Select TCP → enter port 445 → Allow the connection
  4. Apply to Domain, Private, Public as needed
  5. Repeat for port 139 (TCP) and ports 137-138 (UDP)

Why Are Windows FileShare Ports Blocked?

  • ISP blocking — many ISPs block port 445 to prevent ransomware (WannaCry used SMB)
  • Corporate firewall — IT departments restrict SMB for security
  • Windows Firewall — blocks SMB on public network profiles by default

FileShare Without Opening Ports

If you can't open SMB ports, use files-share.com — it transfers files over HTTPS (port 443) which is open on virtually every network. No firewall changes needed, no IT approval required.

FAQ

What port does Windows file sharing use?

Port 445 (TCP) for SMB/CIFS. Port 139 (TCP) for legacy NetBIOS. Ports 137-138 (UDP) for NetBIOS name service.

What is the Windows fileshare port number?

The main Windows fileshare port is 445 (TCP). This is used by both SMB and CIFS protocols.

How do I fix Windows file sharing blocked by firewall?

Open port 445 (TCP) in Windows Firewall. Or use files-share.com which works over HTTPS port 443 — no firewall changes needed.

What ports does CIFS use on Windows?

CIFS uses port 445 (TCP) — the same as SMB. CIFS is an older name for the SMB protocol.

Can I share files on Windows without opening port 445?

Yes. Use files-share.com — browser-based file sharing over HTTPS (port 443), no SMB ports needed.

Can't open fileshare ports? files-share.com works over HTTPS on any network — free, no account, up to 10GB.