Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-02-2010, 10:54 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 12

Rep: Reputation: 0
How do I find the IP address of a shared network printer?

I'm using ubuntu 9.10 on HP pavillion dv6 laptop, and I'm trying to install printer drivers for a Canon MF4150 printer on my home network. I went to the Canon website and found the linux drivers bundled in a zip file, which I opened. I found the instructions and opened the deb package with debian package manger, installed the common module for cups drivers, installed the printer driver module, restarted cups, but to register the printer (PPD)with the print spooler, I need to know the IP address of the network printer.

Thanks for any help.
Old 02-02-2010, 11:16 PM   #2
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 781
Blog Entries: 6

Rep: Reputation: 75
maybe you can use arp-scan command

this way :-

arp-scan --interface=eth0 --localnet
Old 02-03-2010, 12:26 AM   #3
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
If you are using DHCP in your router to assign IP addresses, the router can probably tell you. There is generally a web-based tool for router configuration and normally it can show you a list of all assigned IP addresses and associated MAC addresses.
Old 02-03-2010, 04:10 AM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
There is also nmap.
nmap -sP

It probably has an IP number one more than the last computer.
Old 02-03-2010, 04:42 AM   #5
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198Reputation: 1198
Are you sure it's a Canon MF4150? The Advanced User Guide does not mention network connectivity. Some printers have an LCD and menus which provide a way of setting (and viewing) the IP address. Others are http-enabled. If it is the latter it may be possible to reset it to a default address and thus to reset it to a known address.
Old 02-04-2010, 02:38 PM   #6
LQ Newbie
Registered: Dec 2008
Posts: 12

Original Poster
Rep: Reputation: 0
canon printer install

It is the MF4150, which is directly connected, via USB, to a desktop computer in my home network. I can see the printer when searching the network for printers, in the ADMINISTRATINO>PRINTERS menu. I was able to install this printer on the same network in the past on a different laptop running ubuntu 8.04, but can't seem to make it work this time. Of note, I am running 64 bit os, and the canon website didn't have 64bit drivers for deb based system, but did for rpm so I used Alien to convert the rpm package to deb package. I found the ppd file for the printer in the /usr/share/cups/model folder, and tried to install with the "add new printer" option from the menu, and it appears to install ok, but nothing happens when I try to print something.

So, I followed the directions that came with the drivers from Canon, and tried to install it manually in terminal. I was able to install the common cups module, and the driver module, restart the cups, but the instructions give a command to register the printer with the spooler, which requires that I know the IP address of the printer.

Still trying,
Old 02-04-2010, 04:33 PM   #7
Registered: Dec 2008
Location: Bellevue,WA
Distribution: RHEL 5 , Fedora ,Sabayon,Solaris,Vmware,AWS
Posts: 107

Rep: Reputation: 18
Hello bacuser,

If the printer is connected to a windows computer , you need samba packages setup ,

check out ,
Old 02-04-2010, 04:45 PM   #8
Registered: Mar 2008
Posts: 20,289

Rep: Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211
I kind of agree. If it is your home you would know the IP address if you connected it to your home lan. It suggests that you are trying to access a printer that is connected to a windows computer.

If it is connected to your home lan only by a network cable to your switch/hub/router and you never changed it then it should be the factory default still.
Old 02-04-2010, 10:17 PM   #9
LQ Newbie
Registered: Dec 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Plot thickens

OK, I installed Samba, then tried to reinstall the common cups module, then the device driver modules, then used the 'printer configuration' function from 'administration>printing' menu. I am able to browse and find the network printer via samba, and give it the ppd file that goes with the MF4100 series printer, but a window pops up stating "Printer 'Canon-MF4100' requires the 'pstoufr2cpca' program but it is not currently installed. Please install it before using this printer".

Also, when I try to send a test page to the printer, a message pops up stating that 'Printing Error -- there was a problem printing document 'test page', stopping job because the scheduler could not execute a filter'.

I tried to find a program 'pstoufr2cpca' with Synaptic Installer, and with 'Ubuntu Software Center', but nothing. Then I searched for a file on my system by that name, found the file in /usr/lib/cups/filter folder, and when I looked at the properties of that file, it shows the 'type: link (broken) (inode/symlink), and the Link target: ../../../lib64/cups/filter/pstoufr2cpca.

So, how do I get this file back, reinstall, fix the link, or whatever?

I know this same printer, on a Windows XP desktop, was installed with drivers obtained at the same place on my old laptop running ubuntu 8.04. Maybe there is something about the 64bit os that this isn't supported?

Thanks for all the effort to help me.
Old 05-22-2010, 04:41 PM   #10
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
just a thought
I just, five minutes ago, printed the first test page from my Suse 11.1 box to my winXP shared Canon MF3110

by following what was listed on this page

and translating some of it to Suse

it left out the turning on of RedMon

heres how
extract the RedMon zip
browse to
clik setup
yes you want to install
clik RedMon extended edition
in top toolbar <options>
start RPC server

then when you get to the part about configuring redirected port it will let you configure it

if you have already completed your task then please ignore this post


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Network shared printer on WinXP computer? redbird Linux - General 3 10-01-2009 04:40 PM
problem with shared printer on windows network robybo Linux - Networking 0 12-10-2008 10:37 AM
Printer problems, can't find a printer that is attached to a windows network. ahalfapint Linux - Networking 2 04-12-2006 05:29 PM
Cannot Find SMB Shared Printer In KDE PrintManager eric.r.turner Linux - General 0 07-31-2005 12:45 PM
Network Printer Shared in Windows crewblunts Linux - Hardware 1 02-12-2004 10:55 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration