Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-20-2008, 07:51 AM   #1
LQ Newbie
Registered: Aug 2008
Posts: 3

Rep: Reputation: 0
Cups Hostname Problem

Hi there,
I share my printers with cups. I'm using linux-to-linux share.
On clients, if i introduce my server hostname and its ip in /etc/hosts everything is working. If I dont write clients cannot understand my server ip.
My problem is if there is any way to achieve this in another way. I want clients to recognize my server automatically. I should configure only server. Can I introduce my server to the clients with its ip?

Thanks for any help

Last edited by xgme; 08-20-2008 at 07:56 AM. Reason: clarity
Old 08-21-2008, 09:38 AM   #2
LQ Newbie
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Anyway I found the way and I do not have to introduce my printer server in clients' /etc/hosts anymore
It works wonderful!!!
0 members found this post helpful.
Old 06-06-2010, 07:11 AM   #3
LQ Newbie
Registered: Mar 2007
Posts: 7

Rep: Reputation: 0
why not tell us what you did or where you find the solution? It would greatly help this thread.
Old 06-07-2010, 05:01 AM   #4
LQ Newbie
Registered: Aug 2008
Posts: 3

Original Poster
Rep: Reputation: 0
it was years ago, but as I remember I changed server-name for printer in Samba (not CUPS) to localhost. The problem was that servers are broadcasting themselves to clients via a machine name like "John's machine" and printer "John's printer" but clients search network hardware by their ip. Therefore, I could not establish an automatic recognition for clients.

I know setting server-name for printer to localhost is not a good way, because user may want to broadcast his printer with a specific name, but that time I could not find another solution.

In this configuration, there was some strange thing. When I set that configuration, client linux machines also automatically add that printer to their OS without any configuration or a command like "Add". Maybe this can be a security bug in linux machines because i can create a virtual machine and broadcast it as "localhost" and then i can automatically connect to clients in my LAN. It was the reason that i did not write the answer because this is really naive solution.

Last edited by xgme; 06-07-2010 at 05:03 AM.


cups, hostname, ip, printer, sharing

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
hostname problem matrixon Linux - Software 3 06-24-2005 04:27 PM
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 09:01 AM
Problem with networked printing with CUPS-- hostname showing up where it shouldn't pingswept Linux - General 1 06-29-2004 10:38 PM
hostname problem bm1 Linux - Networking 11 05-12-2003 03:14 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration