Looking to use Pi3 as a webserver (Apache, PHP, MySQL). I need it to allow other devices to connect to it via WiFi to access the hosted web site, Is WiFi-Direct the best way of doing this as there is no router, if so are there any instruction on how to do it?

1 Answer 1


I think the most straighforward way to achieve your goal would be to setup your Raspberry Pi as an access point. I would suggest you follow the official how-to from the Raspberry Pi foundation.

As your Raspberry Pi is standalone and no routing is needed, you can stop before the part ADD ROUTING AND MASQUERADE of the tutorial.

Now your other devices can simply connect to the SSID you have specified in the hostapd.conf file, using the passphrase (pre-shared key) defined there.

  • I just saw this answer, the day after I posted my own question about ROUTING and MASQUERADE. I thought I could stop there, but wasn't sure. You answered that. They should modify the tutorial so it is more clear those other steps aren't necessary if all you want to do is connect a laptop to a pi via wifi.
    – RufusVS
    Aug 4, 2019 at 23:34

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.