mantydad wrote:The addresses given out my the router are in the 192.168.2.2 thru 192.168.2.254. Pi has a 2.12 address. It was also assigned to it by the router. Also an ifconfig will not do any good if i can not get. Believe me i tried
As already mentioned.... Use the DHCP reservation feature of your router and assign 192.168.2.12 or whatever IP to the MAC address of the RPi. Then your home router will always give the RPi the same IP and you will have no configuration to change on the RPi itself. (Leave it at default DHCP enabled).
At school unless you have access to the router then you have no choice but to use ifconfig. Or maybe make a program to flash an LED to indicate the last digits of the IP. I think the Pidora OS does that on boot.
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.