Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-01-2004, 02:41 AM   #1
LQ Newbie
Registered: Dec 2001
Location: Guizhou, China
Distribution: rh
Posts: 13

Rep: Reputation: 0
remote client can't print using cups

I'm trying to do something I had hoped would be really simple. I've got a home network of only linux machines. My server is fedora core 2, and I have a samsung ml-4500 laser printer connected via the local parallel port. I'm using cups, and the printer works fine locally. My other computers are networked via ethernet. I'm running the shorewall firewall on the server, but brought it down because I thought it might be causing problems. I get the same problem whether the firewall is running or not. No firewall on the other computers either, for testing purposes. I use the system-config-printer utility in fedora on the server machine. It shows the printer connected locally on /dev/lp0. I configured the ML-4500 printer driver. Under 'sharing' I've checked 'This queue is available to other computers', and 'allowed hosts' I have as 'Network device eth1'. I also tried using my home network address range with netmask, but get the same results.

On the client machines, I have redhat 9.0 or fedora core 2. It doesn't matter which client machines I try, the result is the same. On a redhat 9.0 machine, I use the 'redhat-config-printer' utility, and under 'queue type' check 'Networked CUPS (IPP)', then select the samsung ml-4500 printer driver. When I try to print a test page from the client, whether from the config utility or from http://localhost:631, I get 'Printer busy; will retry in 10 seconds ...'.

Here is my cupsd.conf on my server machine:
# Lines below are automatically generated - DO NOT EDIT
<Location /printers/SamsungML4500>
Order Deny,Allow
Deny From All
Allow From
AuthType None
Allow from
<Location />
Order Deny,Allow
Deny From All
Allow From
Browsing On
BrowseProtocols cups
BrowseOrder Deny,Allow
BrowseAllow from @LOCAL

When I do netstat -ln -A inet, I get:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0* LISTEN
tcp 0 0* LISTEN
tcp 0 0* LISTEN
tcp 0 0* LISTEN
tcp 0 0* LISTEN
tcp 0 0* LISTEN
tcp 0 0* LISTEN
udp 0 0*
udp 0 0*

I'm sure that my main problem is that I don't understand linux networking well at all. Its all quite vague still.

From a client, if I do telnet 631 I get:
>Connected to ...
Escape character is '^['.

So I guess the server port 631 is listening ok, but I don't really understand the port configuration for cups to work right.

Using nmap from client machine, I see that the tcp port 631 is open on the server, but the udp port 631 is closed. I've tried to open it by adding relevent lines in my shorewall rule script, and by using the iptables command directly, all to no effect.

Can anyone help me figure out where the problem is? Let me know what other data or info would be helpful.



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
CUPS: Cannot print to remote printer nazarioz Linux - General 16 01-12-2005 09:11 PM
Can't print to remote printer using CUPS pfunk Linux - General 1 10-22-2004 12:51 PM
CUPS: Cannot print to remote printer nazarioz Linux - Hardware 1 09-26-2004 07:23 PM
CUPS: Cannot print to remote printer nazarioz Linux - Newbie 1 09-26-2004 06:49 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:49 AM.

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