Notifications
Clear all

Set static ip  

  RSS
brian barnes
(@brian-barnes)
New Member
Set static ip

I am trying to set a static ip address on my mini, firmware 4.4.1. I do not have the ability to set a static ip on the router. I do not have the option to load or save lan settings in the menu. I have created a lan_settings.ini file with the required information:

[lan_ip4]
type=STATIC
hostname=PrusaMINI
address=192.168.100.52
mask=255.255.255.0
gateway=192.168.100.1

There are no extra lines or spaces after the gateway. The information is not loaded on boot up and no static ip is set. Can anyone assist?

Oh, and WOW I love being able to send G-Code remotely to the minis. We have 8 at our school and the kids don't have to touch the memory sticks anymore!!!!

Napsal : 23/03/2023 8:46 am
jseyfert3
(@jseyfert3)
Reputable Member
RE: Set static ip

There's an open issue for static IP being unable to be set since 4.4.0: https://github.com/prusa3d/Prusa-Firmware-Buddy/issues/2367

Also just a friendly reminder that if you set a static IP address, and you aren't sure the IP address is in a range the router doesn't assign DHCP addresses, the router could assign that same IP address to a different device and then you'll have an IP address conflict and things won't work.

Napsal : 23/03/2023 3:16 pm
Georg
(@georg-2)
Estimable Member
RE: Set static ip

Current Workaorund for me is to reserve an IP in my router (using the MAC address ). So the printer always gets the same IP from DHCP Server.

Napsal : 24/03/2023 9:32 am
Crab
 Crab
(@crab)
Reputable Member
RE:

Just grasping at straws.. but put a CRLF (or blank line) after the gateway.. If the parser is not coded correctly, it might be waiting for a CRLF after the last line it expects.. It is a long shot, but a blank line at the end won’t hurt anything. As above, make sure your address (52) is outside the range of the router giving dynamic addresses out. 52 should be safe as unlikely you have that many devices.. 150 might be safer.. depends where your router starts giving out addresses. 

One thing I dislike about new firmware is the lack of feedback given to the user for important processes. I don’t have a Mini to check.. but would be nice for it to say status messages, such as:  ‘Found ini file’.. then ‘processing ini file’ .. then ‘settings static IP’ (if it recognized a static IP setting) .. then ‘IP set to xxxxxx’.. Without this it forces the user to have very complex packet tracing programs to see what is going on in the network.. For instance.. the Mini doesn’t seems to respond to pings correctly .. and that could only be determined by a user with virtually a CCNA (Cisco network certified associate ) using a WireShark packet tracer. 

If the mini normally gives a message about a found INI file, it could be .. maybe .. that it can’t find the file for some reason.. is it named correctly.. ? For instance.. sometimes Windows puts .txt on the end and the file is really called filename.ini.txt.. You are only sure when viewing filename at command line.

Napsal : 24/03/2023 11:00 pm
jseyfert3
(@jseyfert3)
Reputable Member
RE: Set static ip

If the mini normally gives a message about a found INI file, it could be .. maybe .. that it can’t find the file for some reason.. is it named correctly.. ? For instance.. sometimes Windows puts .txt on the end and the file is really called filename.ini.txt.. You are only sure when viewing filename at command line.

You tell the Mini to load IP settings, and it either says something to the effect of loading, or config not found.

As to the last part, simply open up File Explorer, go to the View tab, and click the checkbox by File name extensions and Windows will now show file extensions for all file types. No need to view the filename at the command line.

Napsal : 25/03/2023 4:41 pm
Share: