Notifications
Clear all

Setting local hostname for PrusaLink?  

Stránka 1 / 2
  RSS
aleksandar.m3
(@aleksandar-m3)
Active Member
Setting local hostname for PrusaLink?

Is it possible to set a local hostname for the printer, so that it can be accessed as something like http://my-3d-printer.local/ instead of having to look up its current IP address?

I.e. similar how one would setup/access Octoprint.

If I download printer's configuration file under settings in Prusa Connect, I get prusa_printer_settings.ini file. I see hostname in there with default value of prusa-mk4. But it doesn't seem printer is accessible as "prusa-mk4.local", and it doesn't seem it is possible to upload that file back?

Napsal : 08/06/2023 5:18 am
Hello
(@hello)
Noble Member
RE: Setting local hostname for PrusaLink?

On the raspberry pi imager in the settings above network there should be a tick box then a text box next to that . local tick tick box enter something in the text box and enter that instead of IP address 

Please help me out by downloading a model it's free and easy but really helps me out https://www.printables.com/@Hello_474427/models

Napsal : 08/06/2023 5:29 am
Hello
(@hello)
Noble Member
RE: Setting local hostname for PrusaLink?

I'll post an image if you don't understand 

Please help me out by downloading a model it's free and easy but really helps me out https://www.printables.com/@Hello_474427/models

Napsal : 08/06/2023 5:35 am
aleksandar.m3
(@aleksandar-m3)
Active Member
Topic starter answered:
RE: Setting local hostname for PrusaLink?

Hmmm... This is for using PrusaLink in mk4. I think Raspberry Pi imager is for setting up Raspberry Pi Zero addon for mk3 series of printers...

Napsal : 08/06/2023 5:37 am
Hello
(@hello)
Noble Member
RE: Setting local hostname for PrusaLink?

oh im so dumb sorry i didint see this is for mk4 so sorry yes you are right 

Please help me out by downloading a model it's free and easy but really helps me out https://www.printables.com/@Hello_474427/models

Napsal : 08/06/2023 5:38 am
Hello
(@hello)
Noble Member
RE: Setting local hostname for PrusaLink?

if you contact prusa support through live chat they may be able to walk you through it

Please help me out by downloading a model it's free and easy but really helps me out https://www.printables.com/@Hello_474427/models

Napsal : 08/06/2023 5:44 am
Pokornz
(@pokornz)
Active Member
RE: Setting local hostname for PrusaLink?

@aleksandar-mk3 any updates? I was wondering the same.

Napsal : 22/06/2023 1:01 pm
ChristianR
(@christianr)
Active Member
RE:

I'm also looking on how to set a hostname for the MK4. I currently have to use a static IP but I would really like a dynamic IP and a hostname. Does anyone know how to do this? Editing the ini file like it is shown here for the mini does not work.
https://help.prusa3d.com/article/prusa-connect-local-mini_133279

Napsal : 24/10/2023 8:37 am
Zappes
(@zappes)
Reputable Member
RE:

You may want to have a look at the configuration of your router. Many models have a local DNS in which you can define host names for devices on your network.

Another option would be a static IP for the printer in combination with an entry in your hosts file (/etc/hosts on Unix, "C:\Windows\System32\drivers\etc\hosts" on Windows).

My models on Printables
Napsal : 24/10/2023 9:00 am
ScottW se líbí
ChristianR
(@christianr)
Active Member
RE: Setting local hostname for PrusaLink?

Thanks for the idea but I'm working in a big corporate setup and can't mess with the router 🙂 Currently I requested a static IP but my sysadmin would really be happy if I could get the DNS hostname working.

Napsal : 24/10/2023 9:03 am
Zappes se líbí
Zappes
(@zappes)
Reputable Member
RE: Setting local hostname for PrusaLink?

OK, fair enough. 🙂 One could argue, though, that this is a task for your admin - for him, it should be quite trivial to assign a hostname with either a static or a dynamic IP for that device.

My models on Printables
Napsal : 24/10/2023 9:04 am
Pokornz
(@pokornz)
Active Member
RE: Setting local hostname for PrusaLink?

Ever since I've updated the MK4 to 4.7.2, I've been able to use the config from the settings page in Prusa Connect, and then edit the hostname in the network section.

Napsal : 24/10/2023 11:31 am
aleksandar.m3
(@aleksandar-m3)
Active Member
Topic starter answered:
RE:

 

Posted by: @pokornz

Ever since I've updated the MK4 to 4.7.2, I've been able to use the config from the settings page in Prusa Connect, and then edit the hostname in the network section.

So, this advice kinda sorta worked.

I went to physical printer settings in PrusaSlicer and changed "host type" from PrusaLink to PrusaConnect. For the "hostname, IP or URL" field I typed in "https://connect.prusa3d.com", and copy pasted PrusaConnect API key from printer's settings page on PrusaConnect. Clicking "test" it says it can connect to the printer.

This of course assumes Internet connectivity; because Slicer uploads it to PrusaConnect, and printer in turn downloads it from there. This is workable if not ideal.

If I leave "host type" as PrusaLink, and attempt to just use printer's name (which is set in prusa_printer_settings.ini) instead of IP address, it doesn't work. I attempted to use "myprinter" and "myprinter.local" (let say I set "myprinter" as hostname in prusa_printer_settings.ini as hostname) . Either of those gives me an error. So clearly this is not using Bonjour protocol like (which is what OctoPi is using).

Did you have any luck in using PrusaLink with hostname instead of an IP address?

FWIW, while my WiFi router does allow me to reserve an IP address for a particular device, it doesn't allow me to set a DNS name for it (it's a Google WiFi router, very simple, just works, but on the other hand not too many too advanced options).

This post was modified před 1 year 3 times by aleksandar.m3
Napsal : 25/10/2023 1:54 am
Pokornz
(@pokornz)
Active Member
RE: Setting local hostname for PrusaLink?

I'm using PrusaLink and custom hostname, based on the ini file I downloaded from PrusaConnect (checkout the screenshot in the previous message). Make sure your printer and wifi module are up-to-date, and make sure to reinitialize the wifi module after you've made changes to the ini file. You should be able to access PrusaLink by just typing the hostname into the address bar of your browser, this should work regardless of Slicer settings.

Napsal : 25/10/2023 3:33 am
Zappes
(@zappes)
Reputable Member
RE: Setting local hostname for PrusaLink?

In order for those hostnames to work, you either need a router that will actually create an internal DNS entry or some external DNS like Pi-Hole in your network. Just setting a hostname on a machine will not have any effect on name resolving in your network.

You might want to read this for the simplest possible fix: https://www.freecodecamp.org/news/how-to-find-and-edit-a-windows-hosts-file/

My models on Printables
Napsal : 25/10/2023 6:55 am
aleksandar.m3
(@aleksandar-m3)
Active Member
Topic starter answered:
RE: Setting local hostname for PrusaLink?

 

Posted by: @zappes

In order for those hostnames to work, you either need a router that will actually create an internal DNS entry or some external DNS like Pi-Hole in your network. Just setting a hostname on a machine will not have any effect on name resolving in your network.

You might want to read this for the simplest possible fix: https://www.freecodecamp.org/news/how-to-find-and-edit-a-windows-hosts-file/

Yup. I know those tricks. However, one would hope for zeroconf support; e.g. mDNS (RFC 6762), which is natively supported by Apple (also called Bonjour), Windows, and Linux (via Avahi package) clients. There's no reason for users to have to manually reconfigure their routers and/or edit configuration files on *all* of their computers they want to access printer from. Octopi does this and it works wonderfully. I'm a bit disappointed PrusaLink doesn't.

Napsal : 25/10/2023 4:48 pm
ChristianR se líbí
MMMaker
(@mmmaker)
Member
RE: Setting local hostname for PrusaLink?

The official article explaining what Prusa Link and Prusa Connect are currently has a screenshot showing "hostname" as part of the Prusa Link UI, however, after just updating my Prusa Mini+ to what is the latest firmware (5.1.0) it appears that this feature still does not exist (at least when connecting over wifi).

As previously noted, adding a hostname to the .ini wifi info file does nothing.

Here is the screenshot from the article:

I hope that this feature gets added/fixed as it will make PrusaLink much more useful as it currently is.

Napsal : 26/11/2023 4:04 pm
deets
(@deets)
Member
RE: Setting local hostname for PrusaLink?

Just want to add my $0.02: I would also love this feature, as currently I'm permanently hunting for the IP and then having to give the password again if that changes. I know from personal experience that mDNS works very well with the ESPs used as WIFI connector, so I hope this can get addressed. 

Napsal : 02/02/2024 5:42 pm
Surreal
(@surreal)
Member
RE: Setting local hostname for PrusaLink?

You can add a hostname to the prusa_printer_settings.ini file under a network section (in addition to the wifi section that contains the ssid and password).  This seems to work.

[network]
hostname=mymk4
[wifi]
....
Napsal : 12/04/2024 3:29 pm
twdotnet
(@twdotnet)
Member
RE: Setting local hostname for PrusaLink?

Can confirm - this works with current MK4 and FW 6.0.0

Napsal : 08/05/2024 6:20 pm
Stránka 1 / 2
Share: