I have just got my first Raspberry Pi, (3 Model B+) and am having so much fun with it. My first project is a simple wildlife camera that takes pictures using a simple python script to detect motion. It works great and I have since updated it to also take 10-second videos on motion, (Great for watching the birds in front of a bird feeder).

I have set up samba to make it easy to access the files, but that requires me to be connected to a wifi network. Is there any way that I could use Samba, by connecting over wifi directly to the pi? so that I could go outside with my laptop and have a look if I caught any good images without having to take it inside and connect to my home wifi network.

Even better would be to somehow make the images accessible by any browser so I could have a look at the pictures that were taken. The SD card I am using is multi-purpose so I don't want to mess too much with the wifi configuration etc.

If anyone could point me in the right direction I would appreciate it greatly, Thank you!

  • 1
    The easiest way would probably be to create a WiFi hotspot on the RPi, and run a Samba server to access the files. See raspberrypi.stackexchange.com/questions/77470/… and raspberrypi.stackexchange.com/questions/3498/… Commented Mar 29, 2019 at 13:17
  • @Piskvor Thank you, would that make it incapable of connecting to wifi networks normally? I tried a method using Hostapd to turn the pi into an access point, but then I was not able to use the pi normally. Commented Mar 29, 2019 at 13:39
  • Once you have the hotspot the world is your oyster regarding getting the files off. Run a little webserver to view them from the laptop, maybe.
    – Mark Smith
    Commented Mar 29, 2019 at 13:39
  • 1
    I think that you can use the wifi as a hotspot and client at the same time, but it needs additional changes. Commented Mar 29, 2019 at 13:41
  • 1
    (It could be easier to add a USB wifi dongle and run the hotspot on that, while using the built-in interface for client wifi access) Commented Mar 29, 2019 at 13:43

3 Answers 3


I don't know if it is reasonable for your situation but by far the easiest way to connect to the RasPi outside is to connect to it with an ethernet cable. This works out of the box and don't need additional configuration. You may have the cable always plugged in the RasPi. For example if you have the RasPi mounted in a tree, the cable is hanging down the tree and you can temporary connect to it with the laptop if you want.

Other ways are to use WiFi in all its possible combinations. If the cable solution is not possible I would prefer an access point without routing because there is no routing needed between the access point and the client connection. How to do it you can look at Access point as WiFi repeater, optional with bridge. Follow it until Step 4: setup static interfaces and omit the line IPForward=yes in file /etc/systemd/network/08-wlan0.network.

If you prefer to use an additional USB/WiFi dongle you can look at Access point as WiFi repeater with additional WiFi-dongle but I don't see a real advantage to spend additional hardware for this simple use case.

You can also switch manual or by script the on-board WiFi to be used either as access point or as client connection. How to do it you can look at Switch between wifi client and access point without reboot.

You may also consider to use the bluetooth connection.


If the Pi is mostly-connected, there's also the option "lsyncd the pictures to a server out there, and webserve it from there."


Your question is unclear, but I think the following would meet your needs Raspberry Pi as an Access Point OR WiFi client

This lets my Pi work as a normal WiFi Client when one of my networks is available and as an Access Point otherwise. This would let you use your laptop to connect to the Access Point, but when you bring the Pi indoors it would connect to your router. I use this when travelling with my Pi.

I can't comment on Samba, but I access the Pi with ssh, VNC, ftp and other protocols, and can access a nginx server on the Pi.

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.