Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #29784
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: CUPS - set up printer by name instead of IP address |
| Date | 2020-04-15 11:58 +0100 |
| Organization | A little, after lunch |
| Message-ID | <r76pbr$7n0$1@dont-email.me> (permalink) |
| References | (1 earlier) <poogmg-70k.ln1@Telcontar.valinor> <r74e65$7l2$2@dont-email.me> <6rsgmg-d3n.ln1@Telcontar.valinor> <r74stg$kof$1@dont-email.me> <v65jmg-1fn.ln1@Telcontar.valinor> |
On 15/04/2020 11:45, Carlos E.R. wrote: > On 14/04/2020 19.46, The Natural Philosopher wrote: >> On 14/04/2020 15:10, Carlos E.R. wrote: >>> On 14/04/2020 15.35, The Natural Philosopher wrote: >>>> On 14/04/2020 14:00, Carlos E.R. wrote: >>>>> On 14/04/2020 07.10, Charlie Gibbs wrote: >>>>>> I find CUPS to be nice when it works, but frustrating when it >>>>>> doesn't - which happens often. I've tracked it down to the >>>>>> fact that CUPS accesses my printer by its IP address - which >>>>>> changes from time to time when the printer is powered off or >>>>>> when its DHCP lease expires. In the CUPS web-based interface >>>>>> (http://localhost:631), the "Printers" maintenance screen >>>>>> currently shows: >>>>>> >>>>>> Connection: lpd//192.168.0.41:515/PASSTHRU >>>>>> >>>>>> My printer, on the other hand, is showing an IP address of >>>>>> 192.168.0.45, so any attempts to print will fail. If I delete >>>>>> and re-add the printer, CUPS will find the new IP address and >>>>>> all will be well - until the printer's IP address changes again. >>>>>> >>>>>> Is there a way to get CUPS to access the printer by its name >>>>>> (EPSONxxxxxx) rather than its IP address? >>>>> >>>>> Can you ping that name? My guess is "no". Then, of course CUPS >>>>> can't find the printer by name. >>>>> >>>>> The usual solution is simply to assign a fixed IP to the printer. >>>>> There are two basic methods: write the address in the printer own >>>>> configuration panel or web page, or fixate the address in the >>>>> router via DHCP. >>>>> >>>>> Another would be some kind of DNS setup that updates automatically. >>>>> >>>> Bonjour... >>> >>> Doesn't seem to work. >>> >>> Isengard:~ # lpinfo --include-schemes dnssd -v >>> Isengard:~ # >>> >>> >> ah. that foxes me. I THOUGHT that was how MAC OSX did it. I really did. >> And Mac OSX uses CUPS. >> >> Ah. OS/X uses Air Print so the printer may be running THAT but not >> bonjour. >> >> >> >>> I was rather thinking of an actual DNS setup that gets the name >>> "somehow" and sets it up. >>> >> I think that is sort of how the bonjour/ air print works., >> >> I enabled both on my printer by using the printers web interface to >> enable it and... >> >> lpinfo --include-schemes dnssd -v >> network >> dnssd://HP%20Color%20LaserJet%20Pro%20M252n%20(F63AC8)._pdl-datastream._tcp.local/ >> >> >> It showed a blank before. >> >> This web page may be useful: >> >> https://wiki.debian.org/CUPSDriverlessPrinting >> >> >> >> >> >>> Routers are in the best position to do this, but mine doesn't. >>> >> >> No, routers are not really. The bonjour was designed for this really. >> IF you can turn it on on te printer it SHOULD solve your problem the >> 'official' and rather modern way and has the advantage (???) that any >> mobile device that connects to your network should also find the >> printer and be able to use it. > > I'm not talking of bonjour at all. > But I am. > Just the router giving an IP to machines via DHCP, and finding their > names (probably their windows names). I see my router finding "android" > hosts. It can use rules to assign names on the DNS server that runs on > the router. > Bonjour is the printer giving its IP address to the client with no involvement of the router at all. > It is easy to assign an IP to a printer on the DHCP server at the > router. It should be trivial to also assign a name in the same config page. > No It is even easier to enable bonjour on the printer at which point the printer should just appear in CUPS., At least that how it works here now that I have enabled it. > It should be trivial to also assign a name in the same config page. No. Routers do not assign names > That's all. > > -- “Some people like to travel by train because it combines the slowness of a car with the cramped public exposure of an airplane.” Dennis Miller
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
CUPS - set up printer by name instead of IP address Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2020-04-14 05:10 +0000
Re: CUPS - set up printer by name instead of IP address Bob Tennent <BobT@tennent.ca> - 2020-04-14 11:18 +0000
Re: CUPS - set up printer by name instead of IP address The Natural Philosopher <tnp@invalid.invalid> - 2020-04-14 13:04 +0100
Re: CUPS - set up printer by name instead of IP address The Natural Philosopher <tnp@invalid.invalid> - 2020-04-14 13:00 +0100
Re: CUPS - set up printer by name instead of IP address Andreas Kohlbach <ank@spamfence.net> - 2020-04-14 08:36 -0400
Re: CUPS - set up printer by name instead of IP address The Natural Philosopher <tnp@invalid.invalid> - 2020-04-14 14:03 +0100
Re: CUPS - set up printer by name instead of IP address Andreas Kohlbach <ank@spamfence.net> - 2020-04-14 13:30 -0400
Re: CUPS - set up printer by name instead of IP address "Carlos E.R." <robin_listas@es.invalid> - 2020-04-14 15:00 +0200
Re: CUPS - set up printer by name instead of IP address The Natural Philosopher <tnp@invalid.invalid> - 2020-04-14 14:35 +0100
Re: CUPS - set up printer by name instead of IP address "Carlos E.R." <robin_listas@es.invalid> - 2020-04-14 16:10 +0200
Re: CUPS - set up printer by name instead of IP address The Natural Philosopher <tnp@invalid.invalid> - 2020-04-14 18:46 +0100
Re: CUPS - set up printer by name instead of IP address "Carlos E.R." <robin_listas@es.invalid> - 2020-04-15 12:45 +0200
Re: CUPS - set up printer by name instead of IP address The Natural Philosopher <tnp@invalid.invalid> - 2020-04-15 11:58 +0100
Re: CUPS - set up printer by name instead of IP address "Carlos E.R." <robin_listas@es.invalid> - 2020-04-16 12:53 +0200
Re: CUPS - set up printer by name instead of IP address The Natural Philosopher <tnp@invalid.invalid> - 2020-04-16 13:03 +0100
Re: CUPS - set up printer by name instead of IP address "Carlos E.R." <robin_listas@es.invalid> - 2020-04-16 22:50 +0200
Re: CUPS - set up printer by name instead of IP address "Anonymous Remailer (austria)" <mixmaster@remailer.privacy.at> - 2020-04-17 01:45 +0200
Re: CUPS - set up printer by name instead of IP address "Carlos E.R." <robin_listas@es.invalid> - 2020-04-17 04:19 +0200
Re: CUPS - set up printer by name instead of IP address Rich <rich@example.invalid> - 2020-04-15 14:35 +0000
Re: CUPS - set up printer by name instead of IP address Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2020-04-15 17:14 +0000
Re: CUPS - set up printer by name instead of IP address Bit Twister <BitTwister@mouse-potato.com> - 2020-04-15 12:31 -0500
Re: CUPS - set up printer by name instead of IP address "Carlos E.R." <robin_listas@es.invalid> - 2020-04-16 12:54 +0200
Re: CUPS - set up printer by name instead of IP address "Rinaldi J. Montessi" <rinaldi@notaserver.com> - 2020-04-14 10:21 -0500
Re: CUPS - set up printer by name instead of IP address Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2020-04-14 16:03 +0000
Re: CUPS - set up printer by name instead of IP address The Natural Philosopher <tnp@invalid.invalid> - 2020-04-14 18:47 +0100
Re: CUPS - set up printer by name instead of IP address "Carlos E.R." <robin_listas@es.invalid> - 2020-04-16 13:00 +0200
csiph-web