I'm trying to connect to an SMB share on a Windows machine from a Mac. The SMB is running on port 445. Apparently the Mac is trying to connect on ports 137 through 139.
How can I configure my Mac client to connect on port 445?
Try adding the port number to the URL.
From the "Go" menu in Finder, choose "Connect to Server..." (or simply hit command-K).
In the "Server Address:" field, enter
(replacing the IP address as appropriate)
What version of OS X are you using? I tried this on my Mac (v10.6.4), and it tried port 445 first, and only tried 139 when it got no answer over 445. Here's a tcpdump of me (at 172.20.6.3), trying to connect to "smb://188.8.131.52" (which doesn't exist):
Also, note that SMB on ports 139 and 445 are actually different protocols: port 139 is SMB over NetBIOS over TCP, while 445 is SMB directly over TCP ("direct host SMB"). So if there is something preventing your Mac from using port 445, it's not just a matter of changing the port number...