How do I get wifi printer IP address to stay still so Linux can print from it?

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Black Square
Level 1
Level 1
Posts: 42
Joined: Thu Nov 05, 2020 2:09 pm

How do I get wifi printer IP address to stay still so Linux can print from it?

Post by Black Square »

My printer's IP has changed for about the 3rd time and I've got my printer working by changing the IP address in the URI so at least that's good. But how do I prevent the IP from changing? Could printing from the dual booted Windows have done that? Or could my desktop being on a VPN do that? Or my wifi's cloned MAC address being set to random?

More to the point, how do I get the printer to either stay the same or have Linux not care if it changes? It always works on Windows regardless.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11180
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by AZgl1800 »

I went into the Printer's WiFi settings and set a dedicated IP address at 192.168.1.40 which is higher than anything else on my network.

It never changes, it is always the same no matter if we have a power outage, when it comes back up, it is always x.x.x.40
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
DPM
Level 4
Level 4
Posts: 430
Joined: Thu Sep 24, 2020 9:21 am

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by DPM »

Black Square wrote: Fri Apr 09, 2021 4:16 pmBut how do I prevent the IP from changing?
Log in to your local router, check which MAC address the printer has, and assign always the same IP to that MAC. In fact, I'm doing that for all devices here.
User avatar
AndyMH
Level 21
Level 21
Posts: 13740
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by AndyMH »

Unless you change to a static IP address as recommended by AZgl1500, all the IP addresses for devices on your local network are dynamically allocated by your router through a service called DCHP. Set a static IP address on your printer - methods vary by printer, read the manual. Most if not all routers allow you to restrict the range of IP addresses allocated. For example, I've set the minimum address to 192.168.0.20 and assign static IP addresses to my printers below that, e.g. one of my printers is on 192.168.0.3.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
Black Square
Level 1
Level 1
Posts: 42
Joined: Thu Nov 05, 2020 2:09 pm

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by Black Square »

AndyMH wrote: Fri Apr 09, 2021 6:42 pm Unless you change to a static IP address as recommended by AZgl1500, all the IP addresses for devices on your local network are dynamically allocated by your router through a service called DCHP. Set a static IP address on your printer - methods vary by printer, read the manual. Most if not all routers allow you to restrict the range of IP addresses allocated. For example, I've set the minimum address to 192.168.0.20 and assign static IP addresses to my printers below that, e.g. one of my printers is on 192.168.0.3.
Setting a static IP has done the trick, although why does Linux need a static IP for the printer? Windows doesn't seem to care about the printer's IP, it just prints anyway. Can we not make Linux be like that?
User avatar
AZgl1800
Level 20
Level 20
Posts: 11180
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by AZgl1800 »

Black Square wrote: Sat Apr 10, 2021 9:25 am
AndyMH wrote: Fri Apr 09, 2021 6:42 pm Unless you change to a static IP address as recommended by AZgl1500, all the IP addresses for devices on your local network are dynamically allocated by your router through a service called DCHP. Set a static IP address on your printer - methods vary by printer, read the manual. Most if not all routers allow you to restrict the range of IP addresses allocated. For example, I've set the minimum address to 192.168.0.20 and assign static IP addresses to my printers below that, e.g. one of my printers is on 192.168.0.3.
Setting a static IP has done the trick, although why does Linux need a static IP for the printer? Windows doesn't seem to care about the printer's IP, it just prints anyway. Can we not make Linux be like that?
your WinSlop machine must be more intelligent than mine is,
it is always loosing the printer, and that stopped after I forced the printer to a Hard IP address.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by altair4 »

Try to stay out of printer issues since my systems just discover them on their own but are you still having a problem resolving the ip address from the mDNS name of your Printer:

Code: Select all

avahi-resolve -n NPIE8AB2B.local
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
User avatar
JerryF
Level 16
Level 16
Posts: 6571
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by JerryF »

Black Square wrote: Sat Apr 10, 2021 9:25 am Setting a static IP has done the trick, although why does Linux need a static IP for the printer? Windows doesn't seem to care about the printer's IP, it just prints anyway. Can we not make Linux be like that?
I think it depends on the Device URI. My printer URI is set as socket://192.168.1.7, so it would need a static address.

Mine printer properties:
Shutter_026.jpg
User avatar
AndyMH
Level 21
Level 21
Posts: 13740
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by AndyMH »

I think it depends on the Device URI. My printer URI is set as socket://192.168.1.7, so it would need a static address.
Whereas mine is set as:

Code: Select all

dnssd://Brother%20HL-L8260CDW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-3c2af49d61b6
so it might survive an IP address change, but it's still on a static IP because that's the way I've always done it :)
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
LeonardFludd
Level 1
Level 1
Posts: 1
Joined: Mon Jul 05, 2021 1:47 am

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by LeonardFludd »

AZgl1500 wrote: Fri Apr 09, 2021 5:50 pm I went into the Printer's WiFi settings and set a dedicated IP address at 192.168.1.40 which is higher than anything else on my network.

It never changes, it is always the same no matter if we have a power outage, when it comes back up, it is always x.x.x.40
Hi! I tried what you said but nothing worked. However, I called a specialist and he helped me to solve the problem. I gave my printer to my parents and I bought a new one. I hoped that I wouldn't have any problems with it, but hp envy 7640 not printing. I was very mad and started to find solutions on the Internet. Found a site where were the most common issues with this model of the printer and its solutions. And it turned out that my computer didn't have printer updates. After that, it works without any problems.
Last edited by LeonardFludd on Tue Jul 06, 2021 5:18 pm, edited 1 time in total.
User avatar
AndyMH
Level 21
Level 21
Posts: 13740
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by AndyMH »

LeonardFludd wrote: Mon Jul 05, 2021 1:50 am I tried what you said but nothing work.

Can someone help me?
New question, start a new topic. Your problem may be different to the OP's. When you start a new topic tell us what printer (make and model), whether connected via usb or network and the output from inxi -Fxz to tell us more about your PC. Post the inxi output between code markers - the </> button above the compose window - makes it easier to read.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
donten
Level 4
Level 4
Posts: 244
Joined: Mon Apr 06, 2020 2:16 pm

Re: How do I get wifi printer IP address to stay still so Linux can print from it?

Post by donten »

If your router has a usb port(s), and your printer is usb, or rj45, you can plug it into your router...
Locked

Return to “Printers & Scanners”