Microsoft File Sharing SMB ports
The common problem user encounter is file sharing is not working. If connectivity to the file sharing server is already proven is by PING. Then proceed to check if the ports are blocked. Microsoft file sharing uses the Server Message Block (SMB) which is a client/server protocol that provides file and printer sharing between computers.
Server Message Block (SMB) uses the below ports communications:
Microsoft file sharing SMB: User Datagram Protocol (UDP) ports from 135 through 139 and Transmission Control Protocol (TCP) ports from 135 through 139.
Direct-hosted SMB traffic without a network basic input/output system (NetBIOS): port 445 (TCP and UPD).
To check whether the port are open
Start > Run > cmd > netstat -ano

Netstat Command
From the results, you will see “Proto”, “Local Address”, “Foreign Address”. Protocol refer to either TCP or UDP which the application is using. Local Address is the local computers’s IP address or Source Address and the Foreign Address is the Destination Address. Both port 135 and 445 should be listed there for the Microsoft File Sharing to work properly.
If the port are not open, check the Microsoft Windows Firewall
Start > Run > wscui.cpl

Microsoft Firewall
Select Windows Firewall

File and Printer Sharing
Select second tab, “Exceptions”. Make sure “File and Printer Sharing” is checked.

Ports under File and Printer Sharing
The allowed ports under the “File and Printer Sharing” choice.
I'm Loy and welcome to my blog. I'm an IT engineer which spend a lot time tinkering with technology, while away from work I enjoy capturing the moments and enjoying God's greatest gift - Appetite. Hope you find the information here useful or entertaining. Feel free to feedback about my blogs or give a shoutout.