Pi 4b wont detect internet connection

What is the problem?

Pi4b is spotty on wifi connection when configured via raspi flasher. Doesnt show an IP assigned via static from my router or dhcp.

So i left off the wireless config when i wiped the SD, flashed again and have lights, port active and it just shows apipa IP.

Does leaving off the wifi config force direct or do i need to log into the pi to configure?

What did you already try to solve it?

Reflashed with wireless and also left wireless off for direct

Have you tried running in safe mode?


Did running in safe mode solve the problem?


Systeminfo Bundle

You can download this in OctoPrint's System Information dialog... no bundle, no support, unless the reason you couldn't retrieve the bundle is your network issues


Additional information about your setup

Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ... as much data as possible

Firewalla gold (DHCP router) > Unifi 48 PoE > Unifi AP 6 Pro on 2.4

Or direct

Firewalla gold (DHCP router) > Unifi 48 PoE > pi 4b

so i noticed after reflashing with wifi config using the flasher that the wpa file was empty on SD..i changed here, saved in notepad++ and then booted PI with it and it was detected..

Now thinking when i reboot the PI it will lost again..

If you configure WiFi in the RPi imager, it doesn't show up in the octopi-wpa-supplicant.txt file until after the Pi has booted for the first time - is that maybe what you're seeing in that specific case. Admittedly no useful comments for the main post, just the follow up comment.

1 Like

thanks. yes that's what i observerd.

Guess i'm seeing odd behavior when i decide to reboot system from octoprint, my IP/connection is removed when it finishes loading (observed just from the main login screen).

I tried fixing in CLI with default route and eth0 IP after directly connected but couldnt reach out still.

If i switch from wifi to directly connected, i dont need to reflash, i just need to run the setup again in CLI?

The network connections (wireless or wired) are functions of the base OS. A wired connection is, by default, configured for DHCP and should connect every time the OS is started (or restarted). Normally, no configuration is needed.

The wireless connection needs to be configured once but that configuration should be saved and should connect every time the OS is started (or restarted). This one time configuration is most often done using the Raspberry Pi Imager.

If the wireless connection is unreliable, you can connect a wire without changing anything. You shouldn't need to reboot the RPi but you should be able to without consequence. The wireless and wired connections will have different IP addresses assigned by the DHCP server.