[Solved] how to install a printer directly connected to dietpi (via USB)

I tried to launch all these commands and this is the result:

systemctl status cups
● cups.service - CUPS Scheduler
     Loaded: loaded (/lib/systemd/system/cups.service; disabled; vendor preset: enabled)
     Active: active (running) since Mon 2022-02-14 01:36:14 CET; 7h ago
TriggeredBy: ● cups.socket
       Docs: man:cupsd(8)
   Main PID: 10231 (cupsd)
     Status: "Scheduler is running..."
      Tasks: 1 (limit: 415)
        CPU: 145ms
     CGroup: /system.slice/cups.service
             └─10231 /usr/sbin/cupsd -l

Feb 14 01:36:13 DietPi systemd[1]: Starting CUPS Scheduler...
Feb 14 01:36:14 DietPi systemd[1]: Started CUPS Scheduler.
root@DietPi:~# journalctl -u cups
-- Journal begins at Sun 2022-02-13 20:59:54 CET, ends at Mon 2022-02-14 08:51:08 CET. --
Feb 14 01:27:05 DietPi systemd[1]: Stopping CUPS Scheduler...
Feb 14 01:27:05 DietPi systemd[1]: cups.service: Succeeded.
Feb 14 01:27:05 DietPi systemd[1]: Stopped CUPS Scheduler.
Feb 14 01:36:13 DietPi systemd[1]: Starting CUPS Scheduler...
Feb 14 01:36:14 DietPi systemd[1]: Started CUPS Scheduler.
root@DietPi:~# ss -tulpn | grep LISTEN
tcp   LISTEN 0      80         127.0.0.1:3306       0.0.0.0:*    users:(("mariadbd",pid=10150,fd=17))                    
tcp   LISTEN 0      511        127.0.0.1:6379       0.0.0.0:*    users:(("redis-server",pid=10094,fd=7))                 
tcp   LISTEN 0      4096         0.0.0.0:111        0.0.0.0:*    users:(("rpcbind",pid=371,fd=4),("systemd",pid=1,fd=76))
tcp   LISTEN 0      1024         0.0.0.0:80         0.0.0.0:*    users:(("lighttpd",pid=10227,fd=4))                     
tcp   LISTEN 0      32           0.0.0.0:53         0.0.0.0:*    users:(("pihole-FTL",pid=730,fd=7))                     
tcp   LISTEN 0      1000         0.0.0.0:22         0.0.0.0:*    users:(("dropbear",pid=410,fd=4))                       
tcp   LISTEN 0      128        127.0.0.1:631        0.0.0.0:*    users:(("cupsd",pid=10231,fd=7))                        
tcp   LISTEN 0      256        127.0.0.1:5335       0.0.0.0:*    users:(("unbound",pid=586,fd=4))                        
tcp   LISTEN 0      256        127.0.0.1:8953       0.0.0.0:*    users:(("unbound",pid=586,fd=6))                        
tcp   LISTEN 0      1024         0.0.0.0:443        0.0.0.0:*    users:(("lighttpd",pid=10227,fd=6))                     
tcp   LISTEN 0      5          127.0.0.1:4711       0.0.0.0:*    users:(("pihole-FTL",pid=730,fd=16))                    
tcp   LISTEN 0      511            [::1]:6379          [::]:*    users:(("redis-server",pid=10094,fd=8))                 
tcp   LISTEN 0      4096            [::]:111           [::]:*    users:(("rpcbind",pid=371,fd=6),("systemd",pid=1,fd=78))
tcp   LISTEN 0      1024            [::]:80            [::]:*    users:(("lighttpd",pid=10227,fd=5))                     
tcp   LISTEN 0      32              [::]:53            [::]:*    users:(("pihole-FTL",pid=730,fd=9))                     
tcp   LISTEN 0      1000            [::]:22            [::]:*    users:(("dropbear",pid=410,fd=5))                       
tcp   LISTEN 0      128            [::1]:631           [::]:*    users:(("cupsd",pid=10231,fd=6))                        
tcp   LISTEN 0      256            [::1]:8953          [::]:*    users:(("unbound",pid=586,fd=5))                        
tcp   LISTEN 0      1024            [::]:443           [::]:*    users:(("lighttpd",pid=10227,fd=7))                     
tcp   LISTEN 0      5              [::1]:4711          [::]:*    users:(("pihole-FTL",pid=730,fd=14))                    
root@DietPi:~#

I think is working properly. isn’t it?

If yes, why can’t I reach CUPS from inside my network using port 631 as suggested on this page?