I have tried following this tutorial: How to enable PAN on Raspberry

When I try this command:

sudo pand –connect xx:xx:xx:xx:xx:xx -n 

I get the error:

pand[4035]: Bluetooth PAN daemon version 4.99 
pand[4035]: Connecting to xx:xx:xx:xx:xx:xx
pand[4035]: Connect to xx:xx:xx:xx:xx:xx failed. Connection refused(111)

I have tried the following so my iPod is trusted by my Raspberry Pi.

> sudo bluez-test-device trust xx:xx:xx:xx:xx:xx yes

Any help on this topic would be greatly appreciated.

  • Have you considered the 'Bluetooth Device Manager' in Menu->Preferences? Try Devices->select device and right click->Setup->Connect group network. – alkopop79 Sep 14 '16 at 17:48

Here's how you can setup a bluetooth pan on Raspbian.

This answer uses systemd/networkd but you could do something similar with an interfaces file and dnsmasq if you wanted.


sudo apt-get install bluez-tools

Create the following files:







Description=Bluetooth Auth Agent

ExecStart=/usr/bin/bt-agent -c NoInputNoOutput



Description=Bluetooth NEP PAN

ExecStart=/usr/bin/bt-network -s nap pan0


Then run

sudo systemctl enable systemd-networkd
sudo systemctl enable bt-agent
sudo systemctl enable bt-network
sudo systemctl start systemd-networkd
sudo systemctl start bt-agent
sudo systemctl start bt-network

Finally to pair, run:

sudo bt-adapter --set Discoverable 1

Then, on the other device pair it and connect the network. Hopefully everything should just work after that.

Also note: currently, if you are running Raspbian Stretch, you will need an updated btuart script to workaround the issue here.

protected by Community Aug 18 at 12:37

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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