Im having trouble getting the ip, im not really understanding how it would have one if its not connected to the wifi, but I might be dumb.
Are you searching the ip command?
This provides the ip information from your interfaces:
ip -a
This is how you filter out the IP the address of your active network interfaces:
awk '/global/{if(found!=1){sub(/\/.*/,"",$2);print$2};found=1}'< <(ip a)
A network interface can have an IP address even if itās not connected to Wi-Fi or any network. For example:
- If a static IP address is configured.
- If the interface is active (brought up) but no DHCP lease is acquired yet.
However, even without a network connection, your device will always have the loopback interface with the address 127.0.0.1
. This is used internally by your system to communicate with itself.
h.t.h.
Much and good luck,
ernolf
I got all of theseā¦
169.254.16.212
169.254.190.64
169.254.74.116
169.254.249.203
169.254.10.101
192.168.1.168
169.254.64.166
127.0.0.1
would they all be the ipās for the rpi4? Im not smart in this aspect of computers
What was the exact command?
You should describe exactly how your pi is integrated in your nettwork and how that network is organized (gateway, dhcp etc)
Then you have to start learning it, because it is absolutely basic knowledge, without which you are virtually blind.
Much and good luck,
ernolf
Maybe use tools like angryipscanner or netscanfree? Itāll show the mac addresses which will translate to āraspberry pi foundationā or something along those lines.
It should start with dc:a6:32