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: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.