I am trying to configure my Raspberry Pi to connect to my printer and allow me to print wirelessly using the cups webserver. My Raspberry Pi 3b+ is running headless ubuntu:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
I have connected my Raspberry Pi to the router via an ethernet cable and have connected the printer via. the usb port to the Raspberry Pi.
I have installed ssh on the Raspberry Pi and I am accessing the Raspberry Pi via. a laptop connected on the same network using Wi-Fi for configuring cups.
I used these two references to try and setup cups on raspberry pi:
https://www.tomshardware.com/how-to/raspberry-pi-print-server
https://medium.com/swlh/setup-a-print-server-using-raspberry-pi-cups-part-1-c8f3d48af047 -> https://medium.com/@anirudhgupta281998/setup-a-print-server-using-raspberry-pi-cups-part-2-2d6d48ccdc32
After following this step by step and making sure that the service was up and running on systemctl and also ensuring that the ssh was enabled and webserver option was set to yes in the cups config. I am unable to access the cups webpage when I am accessing it via the edge browser.In this case the local ip address of the raspberry pi device is 192.168.1.15 so trying to access webpage http://192.168.1.15:631 (It shows took too long to respond on browser).
I am using a Canon G2010 series, I have not yet reached the step for installing the drivers.
sudo netstat -pan | grep cupsd
showsudo netstat -pan | grep cupsd
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 1520/cupsd
tcp6 0 0 :::631 :::* LISTEN 1520/cupsd
unix 3 [ ] STREAM CONNECTED 24522 1520/cupsd
unix 3 [ ] STREAM CONNECTED 24512 1520/cupsd
sudo ufw status
to check status of firewall, firewall is inactive.