I was looking to find noob instructions on how to connect to the Raspberry Pi using Wifi Direct from either a phone or another computer. I tried a few instruction but they are aimed for more advanced users (eg: https://www.youtube.com/watch?v=6GPv8TfZqe4) so any help would be greatly appreciated. I know it might be hard to connect a computer to a Raspberry Pi using Wifi direct but I was hoping for decent instructions so that I could at least connect through to an android device like this (https://www.youtube.com/watch?v=Jai2TSk795g)

  • How far along are you? Do you have the adapter recognized by the RPi yet?
    – bobstro
    Commented Jun 29, 2015 at 18:33

3 Answers 3


Hey I guess your question is very similar to this one Connect to Raspberry PI 3 over Wi-Fi direct

but instead of a phone you are using your laptop. Just do these steps through the terminal on the raspberry pi

install wpasupplicant

1. Open terminal 
2. apt-get install wpasupplicant

Edit the Config file

sudo nano etc/wpa_supplicant/p2p.conf

Copy the following into it



Then to Start it just type

sudo wpa_supplicant -B -dd -iwlan0 -Dnl80211 -c /etc/wpa_supplicant/wpa_supplicant.conf

If you want to stop it, just terminate it with

wpa_cli -i wlan0 terminate
  • Are you suggesting doing these steps on the Rpi? How about the laptop?
    – Wes Modes
    Commented Aug 18, 2018 at 22:00
  • these are done on the raspeberry pi to enable wifi Direct. Then to connect to the wifi-direct of the pi using your laptop it should appear as a normal wifi option. Commented Aug 20, 2018 at 8:00

Follow the official Raspberry Pi tutorial here: https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md


  • That wasn't the question. The OP wanted to use Wifi Direct to connect without a network.
    – Wes Modes
    Commented Aug 18, 2018 at 21:59

One of the easiest way is to use nmcli. That is a network-manager command line tool.

See the list of available connections:

nmcli d wifi list

To connect to the wifi:

nmcli d wifi connect <WiFiSSID> password <WiFiPassword> iface <WifiInterface>

additional info in this post

  • Seems like a useful tool, but that wasn't the question. The OP wanted to use Wifi Direct to connect without a network.
    – Wes Modes
    Commented Aug 18, 2018 at 21:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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