I need to change the port numbers of samba. Our ISP is blocking the ports 445 and 139. So I need to run samba in a different port. Please help me to do that.
change this default port to
Then restart samba server. Now samba server should be listening on the new ports that you have mentioned.
For more info on customizing samba server click here for documentation.
N.B. : Use port number above 1024 as these are reserved for system purpose. Hope it helps!