I had my rpi4 as headless configuration, connecting over ssh to it. It itself was connecting via wifi.
Recently I had to change my router, and so the wifi credentials it has are no longer valid.
Now Im a bit pulled how to reconnect to it. I tried ethernet, directly to the new router but I think ethernet gets overridden (as per dietpi.txt)? # - If both Ethernet and WiFi are enabled, WiFi will take priority and Ethernet will be disabled.
Connect keyboard and monitor locally to check what happens. Usually ethernet should still working if not disable manually. Keep in mind, RPI will get a different IP address while connected via ethernet.
Next, was it not possible to adjust WiFi settings on the new router to fit old configuration. Quite unusual that you would need to accept default of this new device.
as an alternative you could create a mobile hotspot on a mobile phone with the old wifi configuration data. This way you could try to connect using a laptop or tablet or another wifi device
βββββββββββββββββββββββββββββββββββββ€ DietPi-Config ββββββββββββββββββββββββββββββββββββββ
β β
β Using the Headless option will: β
β - Disable HDMI and composite output β
β - Disable the framebuffer β
β - Lower energy consumption by 0.1+ Watts β
β - Improve RAM performance by 1-5% (VideoCore shares RAM bandwidth) β
β Source: https://www.raspberrypi.org/forums/viewtopic.php?p=105008#p105008 β
β β
β Re-enabling HDMI requires a reboot. If you need emergency HDMI output, edit the β
β following files on first partition of the SDcard from external system: β
β - In config.txt, set "hdmi_ignore_hotplug=0" and comment/remove the β
β "max_framebuffers=0" line. β
β - In dietpi.txt, set "AUTO_SETUP_HEADLESS=0". β
β β
β <Ok> <Cancel> β
β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ