smb.conf and find a line like this,
smb ports = 445 139
change this default port to
smb ports = 2222 2000
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.