# How to connect Raspberry Pi 3B+ to Mender Server?

**URL:** <https://hub.mender.io/t/how-to-connect-raspberry-pi-3b-to-mender-server/3155>\
**Category:** General Discussions\
**Created:** [January 29, 2021, 10:40am UTC](https://hub.mender.io/t/how-to-connect-raspberry-pi-3b-to-mender-server/3155 "2021-01-29T10:40:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luongthanhnhan0509](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@luongthanhnhan0509](https://hub.mender.io/u/luongthanhnhan0509)\
**Post date:** [January 29, 2021, 10:40am UTC](https://hub.mender.io/t/how-to-connect-raspberry-pi-3b-to-mender-server/3155/1 "2021-01-29T10:40:23Z")

</div>

Hi Mender Community.  
I installed Mender server follow [Production installation | Mender documentation](https://docs.mender.io/2.6/server-installation/production-installation) .  
Then I want connect a device by this text:  
wget -q -O- [https://get.mender.io/](https://get.mender.io/) | sudo bash -s &&   
sudo bash -c ‘DEVICE\_TYPE=“raspberrypi3” &&   
mender setup   
–device-type $DEVICE\_TYPE   
–quiet --demo --server-ip 192.168.2.29 &&   
systemctl restart mender-client &&   
(cat \> /etc/mender/mender-connect.conf \<\< EOF  
{  
“ServerCertificate”: “/usr/share/doc/mender-client/examples/demo.crt”,  
“User”: “pi”,  
“ShellCommand”: “/bin/bash”  
}  
EOF  
) && chmod 0600 /etc/mender/mender-connect.conf &&   
systemctl restart mender-connect’  
After I run this text on my device. I access Tab Devices but I can’t find any device in tab pending.  
Could anyone support me?  
Thank you.  
Sorry I use English not good!

---

<div class="post-metadata">

**Author:** ![Alan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@Alan](https://hub.mender.io/u/Alan)\
**Post date:** [January 29, 2021, 2:34pm UTC](https://hub.mender.io/t/how-to-connect-raspberry-pi-3b-to-mender-server/3155/2 "2021-01-29T14:34:12Z")

</div>

Hi @luongthanhnhan0509,  
thanks for posting and welcome to Mender Hub.

Could you please use the code formatting for the code?

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [January 29, 2021, 7:01pm UTC](https://hub.mender.io/t/how-to-connect-raspberry-pi-3b-to-mender-server/3155/3 "2021-01-29T19:01:33Z")

</div>

Hi @luongthanhnhan0509 welcome to Mender hub. It looks like you are running a production server but using the demo mode settings on the client side. In this case the client will not be able to connect to your production server because it is using the wrong certificate and likely the wrong IP address. [This section](https://docs.mender.io/2.6/system-updates-yocto-project/build-for-production) of the docs will show you what needs to change on your client for production mode. Then you can run “mender setup --help” to see exactly what needs to change in the steps you have followed.

Drew

---

<div class="post-metadata">

**Author:** ![matchsp](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/matchsp/32/1402_2.png) [@matchsp](https://hub.mender.io/u/matchsp)\
**Post date:** [December 12, 2021, 1:16pm UTC](https://hub.mender.io/t/how-to-connect-raspberry-pi-3b-to-mender-server/3155/4 "2021-12-12T13:16:36Z")

</div>

Hi,  
I got the same issue with the client integration but it’s a little bid confusing for me that the guide in

[\> This section](https://docs.mender.io/2.6/system-updates-yocto-project/build-for-production) is talking specifically about builds with Yocto project wich I’m not using. Is the same procedure even when I’m not working with the yocto project?
