I followed the instructions on this page to share a printer on my local network. The part that was not clear to me initially was “what is the shared printer name?”.
Then I found out that the shared printer name was the same as the local printer name configured in CUPS. This probably caused by
load printers = yes option in
smb.conf file. After I set the shared printer name on the client side, printing across the local network works!