MG2900, Connecting to Network

Hi. I took the old network printer, Canon MG2922 from my parent's house because they don't have a computer. I found an old post of mine on this website, saying that I downloaded cnijfilter2-5.00-1-deb and that the file contained an install.sh. Before running the .sh, I am supposed to connect the printer to the network. I was wondering how to do this, as the last time I just used a usb.

Canon Inkjet Printer Driver
Version 5.00
Copyright CANON INC. 2001-2014

==================================================
Command executed = sudo dpkg -iG /home/anthony/Downloads/cnijfilter2-5.00-1-deb/packages/cnijfilter2_5.00-1_amd64.deb
Selecting previously unselected package cnijfilter2.
(Reading database ... 382035 files and directories currently installed.)
Preparing to unpack .../cnijfilter2_5.00-1_amd64.deb ...
Unpacking cnijfilter2 (5.00-1) ...
Setting up cnijfilter2 (5.00-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.10) ...

#=========================================================#
#  Register Printer
#=========================================================#
Next, register the printer to the computer.
Connect the printer, and then turn on the power.
To use the printer on the network, connect the printer to the network.
When the printer is ready, press the Enter key.
> 

I think if your computer is plugged into the network, that should be sufficient, since the software will ALL be installed on the computer anyhow.

Did you have a look at these options for suitability:

There is also this earlier discussion which may give you some insights regarding Canon printers in general:

If your actual printer did have ONLY a network plug and no USB, then this other discussion might be relevant and offer some insights:

Hope those help. :slight_smile:

2 Likes

From: Finding URI of printer

Getting device URI

Try

sudo lpinfo -v

Printer URI: look for a line that has Brother in it (like usb://Brother/MFC-7360N?serial=U62700H1N772098), that should be the one.

Using linux's native GUI (system-config-printer)

Follow this tutorial: GUI method

The printer you identified is a Pixma class printer, so you many have to install using Canon's UFR II related binaries.

If you discover that what you did doesn't give you the full "quality" you should expect, you will likely need to apply the UFR II based drivers/implementation.

Hope all went well. :slight_smile:

1 Like

Hi. The machine doesn't print, but I think that it is for other reasons than not being properly connected to the network: does the URI format look okay, as well as the info in the screenshots?

anthony@anthony-OptiPlex-9010:~$ cnijbe2://Canon/?port=usb&serial=A14BD6


I'm sorry, but I don't know enough about URIs or network attached devices to be able to assist. :frowning:

Feel free to remove the "checkmark" identifying the solution, if you need more assistance from others. :slight_smile:

If your printer is networked, it is unlikely the ip is 192.168.1.1 (that looks like a router ip)
I configured my printer to have a static ip. My printer shows this in sudo lpinfo -v

network dnssd://HP%20LaserJet%20Professional%20P1606dn._pdl-datastream._tcp.local/
network socket://10.0.0.10
network ipp://HP%20LaserJet%20Professional%20P1606dn._ipp._tcp.local/
3 Likes

Hi--yeah, the address is 192.168.1.33. Wish I could get the printer to work wirelessly. Scanner I can deal with later. Like I said, my parents don't have a computer, so I took this one that I bought long ago; used it to print from phones. Does this information look like the right format to you? I have two entries in the Printers dialogue--one for each URI.

Device URI: cnijbe2://Canon/?port=usb&serial=A14BD6

Device URI: serial:/dev/ttyS0?baud=115200


Yep, scanner fixed--missing library. Had to go to terminal to run install.sh, clicking the file just made the text disappear too rapidly.

3 Likes

Anthony, I found this page if it helps

1 Like

Hi. I think I've managed to connect the printer and the network (even has a network icon), but the computer reports that the printer is currently unreachable--are there things I could do to refresh the connection? Thanks.


From my um24.04 ... I clicked on Control Panel | Printers, then properties. Also, output of sudo lpinfo -v Usually, the ipp protocol is used for internet Printing. I don't have a Canon printer, it seems Canon has its own app to control printing. I hope someone who has a Canon printer can help.

1 Like

Option 1:
If the printer is "disabled", then you can rectify that using the command:

cupsenable     Canon-MG2900-series-2

Option 2:
The simplest that I can suggest is to use CUPS to report everything that it knows:

lpstat     -t

or

lpstat     -p Canon-MG2900-series-2     -a

Option 3:
If those don't work (if printer is indeed plugged in ... :slight_smile: ), then you may need to restart the CUPS service:

systemctl restart cups

Option 4:
It could be an issue of "sharing" among computers on the same subnet. In that case, you need to use the command:

cupsctl --share-printers

But if you are sharing between subnets (printer on subnet 1, intervening router, computer on subnet 2), then you need to advise CUPS to share across networks using:

cupsctl --share-printers --remote-any

Option 5:
If none of those work, go back to the printer and re-check the connections, both electrical and network, at both the computer and wall/router.



If everything else fails, I would recommend you give a look at the information published on the CUPS information page at:

It may give you some additional insights on what to do, which I can't.


To obtain the IP of any device that is listening for streams on the CUPS port (631), you can request a report using:

nmap    -p 631     -sV 192.168.1.0/24

or if you want more detail about what that did ...

nmap    -p 631     -sV 192.168.1.0/24     -v

You may even want to hard-code that IP address, via the printer's front panel and configuration options, instead of letting it be dynamically assigned. It might simplify things if your issue persists. :slight_smile:

2 Likes

From this page, https://www.usa.canon.com/support/p/pixma-mg2922

Look for the debian packages, they appear to be compressed tarballs.

1 Like

Hi @ericmarceau--thanks for the great info. Nmap reported the State as Closed; is there a command that can change the State of the ipp Service? If I want to go into my network, into the router, I just open a web browser and enter 192.168.1.33, don't I--Firefox and Chrome alerts me that people could steal passwords and other info if I proceed.

Nmap scan report for anthony-OptiPlex-9010.lan (192.168.1.33)
Host is up (0.00076s latency).

PORT    STATE  SERVICE VERSION
631/tcp closed ipp

anthony@anthony-OptiPlex-9010:~$ lpstat     -p Canon-MG2900-series     -a 
printer Canon-MG2900-series is idle.  enabled since Sat 05 Jul 2025 09:37:56 PM CDT
	The printer is not responding.
Canon-MG2900-series accepting requests since Sat 05 Jul 2025 09:37:56 PM CDT
MG2900-series accepting requests since Sat 05 Jul 2025 04:51:27 PM CDT
anthony@anthony-OptiPlex-9010:~$ 

Hi. This desktop computer is the only computer I have here. Being a wireless printer, I just have the power cord plugged in; the Wifi light of the MG2922 is always lit, so I think that means it's connected to my network. There's also the network printer icon in the Printer dialogue box.This model doesn't have a front panel with a lot of buttons--there's really only the Power and Wifi buttons.

Progress:

Search Labs | AI Overview

To "open" IPP state on TCP port 631, you generally need to configure a firewall or router to allow incoming connections to that port, especially if you are setting up a printer server or want to allow external access to printing services.

There isn't a single "command" to open the port in the sense of executing a program that suddenly allows IPP traffic, but rather it involves setting up the network environment.

How to "open" IPP on TCP port 631:

  1. 1. Identify the Device/Server:

This is the computer or printer that will be acting as the IPP server and needs to accept connections on port 631.

  • 3. Router/Gateway Configuration (if applicable):

  • Access your router's settings by entering its IP address in a web browser.

  • Look for a Port Forwarding or Firewall section.

  • Create a rule to forward TCP port 631 to the IP address of the device running the IPP server.

  • 4. Verification (optional):

  • You can use netstat -ano | find /i "631" in the Command Prompt to check if any process is listening on port 631.

  • You can also use telnet <IP address or hostname> 631 to test connectivity to the port, though this will only tell you if the port is open and reachable, not if IPP is functioning correctly.

  • Nmap scripts like nmap -p 631 --script ipp-info <target-ip> can be used to enumerate IPP services on a target IP.

Important Considerations:

  • Security:

Opening port 631 to the internet can expose your printers to potential vulnerabilities or unauthorized access. It's generally recommended to keep IPP services within your local network or to secure them with strong authentication and access controls.

  • IPP Clients:

Ensure clients trying to connect are using the correct URL or IP address of the IPP server.

Hi. Having some problems entering the router's settings:

The primary DNS, when I enter that number, I get the warning about attackers stealing passwords and credit card details, so I didn't go forward.

Your router should be at 192.168.1.1

Most printers provide a web interface if you access their ip, eg. http://192.168.1.33 but Canon does not provide such interface. In my case, http://10.0.0.10 brings up a web interface for my HP printer where I can configure options.

2 Likes

Usually, router is at 192.168.1.1 Any details on the router?

leave some space for static devices, 192.168.1.2-9

DHCP offers ip's from 192.168.1.10-99 (90 devices)

DNS is 8.8.8.8 and 1.1.1.1

your first post shows you installed cnijfilter2-5 although I would not use dpkg. Just go into that dir and run the install.sh Also, your first screenshot shows ipp://192.168.1.1 (that's the router)

cd ~/Downloads/cnijfilter2-5.00-1-deb/
sudo ./install.sh
2 Likes