3

2 days ago I've setup a Raspberry Pi 2 as a Mopidy player. It worked fine until today. I wanted to re enable the radio stream but I could neither connect via MPD nor the browser nor SSH (from 3 different devices). I tried to directly access the Pi with Keyboard and mouse, which worked. From there I was able to reach the mopidy server with localhost:6680 and the radio worked, which means I am connected to the internet, and it works.

After pinging my computer from the raspi2 I could connect again from the computer. But I was unable to ping other devices in my network because it showed an error message: "Destination host Unreachable".

Then I rebooted the raspi2 and I again am unable to access the raspi2 via ssh, but I am able to ssh to it with a raspi1 model B after pinging my computer again I am again able to ssh from my computer. A weired thing here is though, that I only can ping the raspi1 and my computer but nothing else.

The Pi is connected via WiFi to the router

Is there any solution to my problem?

EDIT:

Today at 11:00 AM I tried again to connect to the pi via phone, which didn't work. 20 Minutes later it worked and now an hour later it still works...

But for future issues I would still want a faster solution to this problem other than waiting a night.

szoszk
  • 131
  • 4

1 Answers1

1

Networking issues are frequently due to the RPi's power supply having insufficient current available. During boots up, the RPi requires more power than during normal operation. This additional power draw causes a dip in output voltage as seen by the RPi which in turn causes unreliable operation of the RPi which often manifests with drivers loading during boot up to not work properly. The network drivers seem particularly prone to this phenomenon and usually fail to get a DHCP address, for example.

Try a different power source for your RPi. Even if the current source appears to have a high rating like 2A, it may not be able to handle the inrush current when the RPi is sparking up all its peripherals during boot up. Several times I've cured other people's networking issues by simply using a different power supply.

Alternatively, try a power USB hub and putting the WiFi adapter in the external powered USB hub - this will eliminate that power load from the RPi. This is good troubleshooting practice with networking issues with the RPi.

BartmanEH
  • 338
  • 1
  • 11