Running SMB at a different port number

Christopher R. Hertel crh at
Wed Feb 10 21:32:44 GMT 1999

> On Thu, 11 Feb 1999, Chris Smith wrote:
> > Hi Folks,
> > 	I have successfully built a Samba server to run at a different
> > port number than 139. Does anybody know how one might connect to such 
> > a server from Windows (NT, 95, or 98 - it doesnt matter). I can connect
> > properly using smbclient -p but I've no idea whether there is form of
> > "URL" that you can put into Windows to get it to connect to shares or
> > printers on a different port?
> sorry - simply not possible!  end of story!
> you could always write a small redirector running on port 139, in perl.

What Luke is trying to say is that the MS implementations (and all others
that I can think of) are hard-wired to listen on port 139.  This is "okay" 
because that port address was assiged for that purpose.  In Samba, you can
get into the code and change it as you want, but the commercial products
out there won't provide that option.

Chris -)-----

Christopher R. Hertel -)-----                   University of Minnesota
crh at              Networking and Telecommunications Services

More information about the samba-technical mailing list