-
Notifications
You must be signed in to change notification settings - Fork 374
Description
After OctoPi boots up, I couldn’t reach it via its IP address from non-ethernet devices — including OctoApp or accessing the Web UI on the same VLAN.
It seems like the IP isn’t announced on the network right away, so it's not reachable until something triggers an ARP broadcast.
Workaround:
I added this command to my crontab using @reboot:
@reboot arping -c 1 -w 2 -I $(ip route | awk '/default/ {print $5; exit}') $(ip addr show $(ip route | awk '/default/ {print $5; exit}') | grep -oP 'inet \K[\d.]+') >/dev/null 2>&1Additionally I used arping to dynamically sweep the local VLAN via service and SH, so each reboot builds the internal ARP table
After this, it works — devices can reach OctoPi and OctoPrint. I recognize that arping is not in the pre-installed apt stack.
Yes, the arping command was "grenerated" to make it so that -I was not always wlan and to get IP
Request:
Could OctoPi include a fix for this, maybe sending a simple ARP request on boot so the IP shows up on the network? Might help others with similar mixed network setups.
Thanks!