# Find firewall ports used by Canon scangearmp2 utility

**URL:** https://forums.rockylinux.org/t/find-firewall-ports-used-by-canon-scangearmp2-utility/11575
**Category:** Rocky Linux Help & Support
**Created:** [October 12, 2023, 1:38pm UTC](https://forums.rockylinux.org/t/find-firewall-ports-used-by-canon-scangearmp2-utility/11575 "2023-10-12T13:38:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![microlinux](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/microlinux/32/1244_2.png) [@microlinux](https://forums.rockylinux.org/u/microlinux)
#### Post date: [October 12, 2023, 1:38pm UTC](https://forums.rockylinux.org/t/find-firewall-ports-used-by-canon-scangearmp2-utility/11575/1 "2023-10-12T13:38:45Z")

</div>

Hi,

Our local school just purchased a Canon GX7050 printer/scanner.

All clients are running a custom blend of Rocky Linux 8 with KDE from EPEL.

The printer works perfectly so far.

The scanner refuses to work with Simple Scan. Apparently it needs its own `scangearmp2` utility which can be downloaded on Canon’s website.

When launching `scangearmp2` from the command line (apparently there’s no corresponding `.desktop` file included) the utility can’t seem to find the scanner on the network.

I tested it again by completely disabling FirewallD, and now the scanner is found. So for the moment I added the printer/scanner’s IP address to FirewallD’s `trusted` zone.

Canon has absolutely no documentation for either its drivers or utilities under Linux. Here’s my question: how do I know which TCP and/or UDP ports I have to open for the `scangearmp2` utility to work correctly?

Cheers,

Niki

---

<div class="post-metadata">

### Author: ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)
#### Post date: [October 12, 2023, 1:46pm UTC](https://forums.rockylinux.org/t/find-firewall-ports-used-by-canon-scangearmp2-utility/11575/2 "2023-10-12T13:46:21Z")

</div>

Easiest would be fire up wireshark when running the program - in the wireshark output you should see what ports it has used to connect to the printer/scanner with.

Another alternative is to run in a console:

```auto
watch -n1 'ss -taun' | grep x.x.x.x

```

where x.x.x.x is the IP of the printer, and see what ports your machine connects to when running that program.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)
#### Post date: [December 11, 2023, 1:47pm UTC](https://forums.rockylinux.org/t/find-firewall-ports-used-by-canon-scangearmp2-utility/11575/3 "2023-12-11T13:47:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
