# Balena + Raspberry 4 doesn't connect to wifi

**URL:** <https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503>\
**Category:** Product support\
**Tags:** wifi, raspberrypi4\
**Created:** [December 11, 2020, 10:59pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503 "2020-12-11T22:59:14Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![music\_sixx\_am](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@music\_sixx\_am](https://forums.balena.io/u/music_sixx_am)\
**Post date:** [December 11, 2020, 10:59pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/1 "2020-12-11T22:59:14Z")

</div>

Hello, I just installed an instance of balena audio on my rp4b and choose ethernet + wifi for the network connection. I entered the correct data, but it doesn’t work over wifi. Ethernet works fine.  
Please help me, very confusing.

Regards,  
Niklas

---

<div class="post-metadata">

**Author:** ![rcooke-warwick](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@rcooke-warwick](https://forums.balena.io/u/rcooke-warwick)\
**Post date:** [December 14, 2020, 4:19pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/2 "2020-12-14T16:19:17Z")

</div>

Hi there. I would try to double check that the network ssid and password are correct again. You can also go to the terminal in the dashboard, ssh into the hostOS, and run `nmcli dev wifi` to show all available wifi networks, just to check that your wifi network is in range/has a good connection

---

<div class="post-metadata">

**Author:** ![music\_sixx\_am](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@music\_sixx\_am](https://forums.balena.io/u/music_sixx_am)\
**Post date:** [December 18, 2020, 11:47am UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/4 "2020-12-18T11:47:07Z")

</div>

Hello, what does it mean when it says: “VPN disconnected, heartbeat only”.  
Maybe this is part of the issue?

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [December 18, 2020, 12:13pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/5 "2020-12-18T12:13:59Z")

</div>

This is just a message that says that the device is probably offline, see [https://www.balena.io/docs/learn/manage/device-statuses/#device-connectivity](https://www.balena.io/docs/learn/manage/device-statuses/#device-connectivity) in the note specifically. So if you removed the ethernet from your device, that message will stay there for about 10 minutes (specifically the amount of time that the supervisor’s api polling is set). After that time the device will show as offline. In your case it’s probably the SSID or the password for the wifi that is wrong. You can verify the wifi credentials the way that my colleague Ryan describes above. Also you can do this by removing the SD card from the device and mounting it on your computer, then checking the resin-wifi file in the system-connection directory in the SD card. More info about this file [here](https://www.balena.io/docs/reference/OS/network/2.x/#wifi-setup). If your wifi credentials are correct. Then the issue is probably that your router might be using a 5GHz band for the wifi? If so RPis (except pi4) don’t work at 5GHz, try maybe setting it to 2.4GHz.

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [December 18, 2020, 12:16pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/6 "2020-12-18T12:16:02Z")

</div>

btw @music_sixx_am welcome to our Forums!

---

<div class="post-metadata">

**Author:** ![mbalamat](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mbalamat/32/1245_2.png) [@mbalamat](https://forums.balena.io/u/mbalamat)\
**Post date:** [December 18, 2020, 12:20pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/9 "2020-12-18T12:20:10Z")

</div>

Correction, just noticed that you have a pi4. Your device is probably able to handle 5GHz band.

---

<div class="post-metadata">

**Author:** ![music\_sixx\_am](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@music\_sixx\_am](https://forums.balena.io/u/music_sixx_am)\
**Post date:** [December 18, 2020, 8:55pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/11 "2020-12-18T20:55:25Z")

</div>

Hi, I don’t use 5ghz, just normal 2.4ghz. Do I have to set a location some where? Cause I’m accessing the rpi in germany

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [December 18, 2020, 10:20pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/12 "2020-12-18T22:20:26Z")

</div>

Hi Niklas, no, you should not have to enter a country / location for your WiFi, but should definitely double check your network connection settings as outlined above to ensure that the Access Point and password are correct. You might also just want to validate that WiFi is functional on your Pi, and hasn’t actually died. You could flash Raspbian to another SD Card, boot it up up, and see if your WiFi network is identified there. If so, then we can at least rule out physical hardware failure on the Pi.

---

<div class="post-metadata">

**Author:** ![music\_sixx\_am](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@music\_sixx\_am](https://forums.balena.io/u/music_sixx_am)\
**Post date:** [December 18, 2020, 11:11pm UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/14 "2020-12-18T23:11:24Z")

</div>

Hi,  
the pi works fine with any other OS.  
Trust me, I the password to 12345678  
and tried it 12 times… it’s not the password.  
I’m connected with all my personal devices to this network and it works for every other device.  
Thats really weird

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [December 19, 2020, 12:26am UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/15 "2020-12-19T00:26:42Z")

</div>

Maybe a quick test to perform is to re-download the OS image, re-flash it to a different SD Card, and simply try it one more time. Just curious if that works.

---

<div class="post-metadata">

**Author:** ![music\_sixx\_am](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@music\_sixx\_am](https://forums.balena.io/u/music_sixx_am)\
**Post date:** [December 19, 2020, 12:40am UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/17 "2020-12-19T00:40:34Z")

</div>

Just to show you guys:  
I flashed it new on a new micro sd, after testing my wifi functionality with a debian OS (worked fine there).  
The ssid is “Ergeschoss” and the password is “Erdgeschoss2020”. I use the same data for all my other devices and it works find there.  
You can see everything is right in the wifi resin file.  
The only thing making we wonder is the line “key-mgmt=wpa-pask”, since I’m using wpa2 on my wifi, but maybe that’s just how the code handels it.

 ![image_2020-12-19_013704.png](https://global.discourse-cdn.com/balena/original/2X/2/23eb5d5f627123161264ec7860988f4fc7c0163b.png)

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [December 19, 2020, 12:53am UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/18 "2020-12-19T00:53:33Z")

</div>

Oh - it is connected to WiFi - that is a different problem you are facing, likely due to ports being blocked by your router. Ok, so, first and foremost the device _IS_ connected over WiFi, that’s great news. Now, you’ll need to have a look at [https://www.balena.io/docs/reference/OS/network/2.x/#network-requirements](https://www.balena.io/docs/reference/OS/network/2.x/#network-requirements) to ensure the device can communicate with balenaCloud (which it appears to be having some difficulty with).

---

<div class="post-metadata">

**Author:** ![music\_sixx\_am](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@music\_sixx\_am](https://forums.balena.io/u/music_sixx_am)\
**Post date:** [December 19, 2020, 1:23am UTC](https://forums.balena.io/t/balena-raspberry-4-doesnt-connect-to-wifi/220503/20 "2020-12-19T01:23:15Z")

</div>

Yes, the connection was a good sign for me too.  
I’ll just do some research and try my best to get this working.  
Keep you updated - thanks for the help so far (:
