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

Choi, Sung-Pil 0 Reputation points
2023-01-16T08:51:50.7666667+00:00

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,458 questions
{count} votes

2 answers

Sort by: Most helpful
  1. rafalzak 3,216 Reputation points
    2023-01-16T09:13:10.6333333+00:00

    Hi Choi, Sung-Pil,

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

    [https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/direct-hosting-of-smb-over-tcpip

    0 comments No comments

  2. Karlie Weng 14,031 Reputation points Microsoft Vendor
    2023-01-26T08:29:57.6866667+00:00

    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:

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/service-overview-and-network-port-requirements#ports-and-protocols

    Best regards

    Karlie

    0 comments No comments