I have a problem with a remote sensor (connected via a raspberry), it is connected to a local router and correctly uses it as gateway. I can see that the raspberry got an ip address via dhcp. However, there is some configuration mismatch. The raspberry thinks it has a different ip address (probably known to me). Therefore I cannot ping it or ssh into it. Is there still a way to connect to it via ssh ?

  • Do I understand correctly, that you don't know the IP of the RPi? Do you have other devices in this local network? Another Raspberry? If so you can try to run nmap or if you have a smartphone in the network you can use the Fing app on iOS or Android. Apr 2 '17 at 1:49
  • nmap -sP does not find the raspberry. The raspberry displays the ip adress locally on a screen and it is wrong. However, the router has given an ip adress to the device. Probably I have to get the sd card in order to see what is wrong.
    – Moritz
    Apr 3 '17 at 10:21
  • ping should work by default. So I think the chances to connect are very small. Do you have physical access to the RPi or the SD Card? Apr 4 '17 at 5:46
  • I have to go there. Damn.
    – Moritz
    Apr 4 '17 at 13:02

If you know the IP address that the raspberry pi 'thinks' it has: and you have access to the router configuration. Configure the router to allocate the IP that the Pi thinks it has by DHCP fixed/static address to the Pi. That way both the router and the Pi agree what the address is. You should then be able to connect. (provided that there are no other network configuration issues: e.g. routing).

  • Hah, I will try
    – Moritz
    Sep 7 '17 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.