On 05/05/2017 09:19 AM, Doug wrote: > > On 05/05/2017 11:17 AM, François Patte wrote: >> Le 05/05/2017 à 17:06, Javier Perez a écrit : >>> Hi. >>> I guess this is more like a general Linux question. >>> >>> How can I find out on my Fedora 25 what port I have to open up for a >>> program to work? >>> >>> I recently purchased a Multifunction Canon Printer TS5000 series. They >>> use a propetary program for scanning images called ScangearMP . >>> >>> When I execute scangearmp2 it cannot find the printer on the wireless >>> network. >>> If I drop the firewall, then scangearmp2 indeed finds the printer. >>> >>> How can I find out what firewall ports scangear is trying to use? I >>> tried netstat but the listing I saw was kind of large and did not >>> immediately make sense to me. >> printer: ipp protocol port 631 >> >> >> You have a list of ports and associated devices/protocols in /etc/serveces > Tried the command from root in pclos and got permission denied. I don't > know what if any ports are in use for anything, but I figured I might > find out. You could use tcpdump to watch network I/O. In a nutshell: 1. Stop the firewall 2. In a terminal window, run (as the root user): tcpdump -n host <scanner-ip> (ideal if you know it) or tcpdump -n src host <host-ip> (if scanner's IP is unknown) 3. Run the scangearmp2 program and watch the output of the tcpdump command. You should be able to see what ports are being used via that method. 4. Restart the firewall and open the ports you discovered. 5. Try the scangearmp2 program again and see if it works. That's a pretty general idea of a way to find port usage. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer, AllDigital ricks@xxxxxxxxxxxxxx - - AIM/Skype: therps2 ICQ: 226437340 Yahoo: origrps2 - - - - Always remember you're unique, just like everyone else. - ---------------------------------------------------------------------- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx