Firewall ports need to be open for server file sharing

We have a bunch of users need the read/write access to a shared folder on a windows server. I need to apply firewall open from user's desktop to the server. 2 questions here please help.

1. Do I need to apply for all the ports below?
    udp 137/138
    tcp 139/445

2. if so, why file sharing needs udp 137/138? what exactly the windows file sharing service uses udp 137/138?

Thanks for the help.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Fred MarshallPrincipalCommented:
It appears that you do - but it's not clear why this should be an issue.  It should already be set.

The UDP ports are for NB Datagram In and NB Name In.
The TCP ports are for NB Session In and SMB In.

My standard list would be:
LLMNR-UPD-In UDP port 5355
NB-Datagram-In UDP port 138
NB-Name-In UDP port 137
NB-Session-In TCP port 139
SMB-In TCP port 445

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.