what's the syntax for Accessing smb/windows shares via alternative ports?

9,964

Solution 1

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

Solution 2

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.

Share:
9,964

Related videos on Youtube

Maslow
Author by

Maslow

now going F# happy/crazy I want to learn Packet F# MAKE (FAKE) Hoping to work on some F# make/FAKE integrations with tfs build fan of [React;Knockout; Angular 1.0] in that order. VS2015 since developer RC1 or so Roslyn consumer since < June of 2012 My update to a very early roslyn code sample VS2012 since developer preview purely 4.0 Asp.net MVC lover since before 1.0 RTM My Coderbits profile My Open source activities Since just after release VS2010 ultimate (c# .net 3.5, some 4.0) tfs2010 activities, and workflow4 build scripts Since June 2009 c# .net 3.5 in VS2008 Vb.net 2.0 in vs2005 for 2 years My Book shelf on shelfari

Updated on September 17, 2022

Comments

  • Maslow
    Maslow almost 2 years

    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?

  • user1124702
    user1124702 almost 15 years
    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.
  • Lorenzo
    Lorenzo about 10 years