On the Cups settings page https://:631/admin login with root/dietpi or your own set user/password.
Look unter Administration, the right table, check the box “SHow shared printer from other systems”.
(My system language is different, no guaranty for the right text )
I try to reproduce the behavior of your case. No luck till now, the checkbox always goes empty.