Windows 10 port forwarding 445

port-forwardingserver-message-blockssh-tunnelwindows 10

I followed this instruction:
https://www.nikhef.nl/~janjust/CifsOverSSH/Win8Loopback.html
and something strange is happen:

netsh interface portproxy add v4tov4 listenport=446 listenaddress=10.255.255.1 connectaddress=10.255.255.1 connectport=44445 protocol=tcp

is working perfect:

netstat -an | find ":446"

  TCP    10.255.255.1:446       0.0.0.0:0              LISTEN

But I dont know why, but:

netsh interface portproxy add v4tov4 listenport=445 listenaddress=10.255.255.1 connectaddress=10.255.255.1 connectport=44445 protocol=tcp

does not work at all:

netstat -an | find ":445"

  TCP    0.0.0.0:445            0.0.0.0:0              LISTEN

  TCP    [::]:445               [::]:0                 LISTEN

I should see here something like:

  TCP    0.0.0.0:445            0.0.0.0:0              LISTEN

  TCP    10.255.255.1:445       0.0.0.0:0              LISTEN

  TCP    [::]:445               [::]:0                 LISTEN

I have no idea, why this is not working. May someone has a good hint for me?

Best Answer

Port 445 is used by Windows File Sharing services by default. If you use netstat with the -o -b flags, you'll receive something like:

  TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
 Can not obtain ownership information

where the 4 at the end of first line is the PID. You can see a similar question about the message Can not obtain ownership information on Stack Overflow and on Super User.


You can free up the port by disabling NetBT service by following the Microsoft's help article here.

To disable NetBIOS on the DHCP server, follow these steps:

  • Click Start, point to Programs, point to Administrative Tools, and then click DHCP.

  • In the navigation pane, expand the server_name, expand Scope, right-click Scope Options, and then click Configure Options.

    Note In this step, the server_name placeholder specifies the name of the DHCP server.

  • Click the Advanced tab, and then click Microsoft Windows 2000 Options in the Vendor class list.

  • Make sure that Default User Class is selected in the User class list.

  • Click to select the 001 Microsoft Disable Netbios Option check box, under the Available Options column.

  • In the Data entry area, type 0x2 in the Long box, and then click OK.

Related Topic