5

when port forwarding on my router for port 139 to port 139 of my linux-smb based NAS is enabled running a simple \computername.dynamicipserviceX.com\sharename on windows works. However when set to any other port for example \computername.mydynamicIpService.com:999\sharename fails to function when the router is set to also forward that port to 139 internally, do I have the syntax wrong or is something else needed?

Maslow
  • 155
  • 1
  • 1
  • 7

2 Answers2

6

Can't be done sorry. Windows does not support TCP ports other than 445/139. (Here is one reference.)

crb
  • 7,998
  • 1
  • 38
  • 53
1

You could try a Windows port of rinetd on the client machine, which would let you do something like this on the client machine:

#bindaddress  bindport connectaddress connectport
192.168.1.1   139      4.2.2.2        999

Assuming that worked, you could use your normal \servername.server.com\sharename from your client machine, and rinetd would change the connection port for that address.

This article: http://codewut.de/content/port-redirection-windows has more information and a patched binary. I haven't tried this myself, but it looks like it is worth attempting.

Adam Brand
  • 6,127
  • 2
  • 30
  • 40
  • looks like this would work on the server for incoming requests, not the sender for outgoing, right? – Maslow Jul 12 '09 at 10:49
  • You would set this up on the client, not the server. The server would still be set at 139 of course. You would keep the port mapping you had on the router. – Adam Brand Jul 12 '09 at 15:36
  • [rinetd manpage](http://manpages.ubuntu.com/manpages/hardy/man8/rinetd.8.html) – sinelaw Jun 27 '14 at 16:54