Page 1 of 1

headless pi cannot find in the network after router reboot

Posted: Mon Nov 05, 2012 2:09 am
by victagayun
hello guys,

i am running pi headless and i dont have any monitor with me to see what's goin on in the pi.
the problem is when i power off then on the router,i cannot find the pi in the network.i am using Fing (Android and iOS app) to find the ip of the pi if ever the raspi changes ip address,but unfortunately i cannot find it.
all i have to do is reboot the pi.
have u ever experienced the problem? or maybe you can try and see if u experience the same problem.

Re: headless pi cannot find in the network after router rebo

Posted: Mon Nov 05, 2012 2:11 am
by Joe Schmoe
Can you try "nmap" ?

Re: headless pi cannot find in the network after router rebo

Posted: Mon Nov 05, 2012 2:14 am
by victagayun
hello joe,
i dont have any monitor with me,sorry...
all i can do is to reboot. but sometimes after reboot,sdcard is corrupted...

Re: headless pi cannot find in the network after router rebo

Posted: Mon Nov 05, 2012 2:29 am
by Vindicator
sounds like you need to set a static IP or on some routers you have the option to reserve an IP for a specific MAC address, If you are rebooting without one of these options your routers DHCP will possibly assign a new IP every time you reboot.

Also you should not reboot from SSH session (especially if you have not set a static IP or reserved an IP at your router)you should give it a shutdown or halt command and then power off the raspi when there is only a red light left lit.

Code: Select all

sudo shutdown -h now
This is the command I use to shutdown my raspi to limit corruption of the SD card.
I then unplug the power supply not the micro USB connection on the board to save wear and tear on the micro USB connector.

Your router should be able to generate you a routing table that you can look up the IP of your raspi, It will usually have the host name of raspberrypi and should show you the IP and MAC address of the device.