I want to know exactly the network port for Network drive mapping.

Choi, Sung-Pil 0 Reputation points

In this project, we will use network drive mapping between different network range.
The correct port is required.
Can you provide it?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,438 questions
{count} votes

2 answers

Sort by: Most helpful
  1. rafalzak 3,216 Reputation points

    Hi Choi, Sung-Pil,

    SMB uses 445 port. You can find more information here:


    0 comments No comments

  2. Karlie Weng 13,876 Reputation points Microsoft Vendor

    Hello @Choi, Sung-Pil

    SMB ports are generally port numbers 139 and 445.

    Port 139 is used by SMB dialects that communicate over NetBIOS. If you have old clients in your network,  the earlier version of SMB (SMB 1.0) was originally designed to operate on NetBIOS over TCP/IP , which uses port TCP 139 for session services.

    Port 445 is used by newer versions of SMB (after Windows 2000) for direct SMB over TCP/IP.

    You can check if a port is open by using the netstat command.

    (If both NetBIOS over TCP/IP and directly hosted SMB over TCP/IP are available (that is, if ports 445 and 139 are both listening), Windows tries both options at the same time. Whichever responds first is used for communication.)

    Here’s a table summarizes all the service ports in case you needed:


    Best regards


    0 comments No comments