I followed this tutorial to set up my RPi 3 as an Access Point. It works great and I am able to connect through it and I can also VNC to it directly from my phone when in my car (which was the main aim).

However, I now need to revert it back to client mode so that I can connect to it through my home network when I am back home. To be precise, I need an easy way to switch between the two modes.

I tried to follow the instructions in this post but they seem to aimed at using isc-dhcp-server rather than dnsmasq like I am doing. #systemctl stop dnsmasq.service did not appear to do anything. Besides, I am stuck at the part where it says I have to "use wpa_supplicant as a service". The link points to a text file which I have no idea how to put to use. As things stand, if I click on the up/down arrows icon at the top right of the screen, it says "no wireless interfaces found".

My first priority is to switch back to client mode. I will worry about how to automate that later (although it would be cool if there was a single tutorial for doing both using the AP setup I used).

bumped to the homepage by Community yesterday

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


I referenced the following link to come up with my procedure which worked for me:


sudo systemctl stop hostapd.service
sudo systemctl stop isc-dhcp-service
sudo ip link set dev wlan0 down
sudo ip link set dev wlan0 up
sudo ifup wlan0 #not sure if this command was needed or if the one before did the trick but I included it just in case

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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