1

Using hostapd and dhcpd, I was able to turn my raspberry Pi into a hotspot/router. It works fine, but I want to know how to make it accessible (via wifi) when it's disconnected from the internet. I have a webserver serving local apps. I want to wireless access locally running apps being served that don't require internet connection. If I try to connect to the router from any computer or smartphone while it's offline, I'll get the "No Internet Connection" and it won't resolve.

2
  • 1
    It's hard to give you an answer without knowing the details of what you have now. The standard solution is to make a separate network for mobiles (as opposed to bridging between wifi and wired). You'll need a DHCP server and a DNS server (perhaps unbound) for this network. An NTP server and something like avahi would be nice, but not essential. Commented May 5, 2017 at 5:13
  • Would you tell us where there are iPhones or Mac involved? ....Please add the technical details. Commented May 5, 2017 at 6:41

1 Answer 1

1

Using the create_ap tool features you can create an AP without Internet connection to share your files:

Install create_ap:

git clone https://github.com/oblique/create_ap
cd create_ap
make install

AP without Internet sharing:

create_ap -n wlan0 MyAccessPoint MyPassPhrase

You can transfert your file from the remote server through ssh using an android app.

The server should be connected to a wifi AP without Internet connexion ( router ....)

The Android device should be connected to the AP ( created through the create_ap command)

On your rpi install and configure the ssh server

apt install openssh-server

Open the sshd_config

nano  /etc/ssh/sshd_config

Add / verify the following

AllowUsers Your_username_here
PermitRootLogin no
Port 22

Restart the service:

systemctl restart sshd

Install an android application e,g: JuiceSSH - SSH Client.... to access your server.

3
  • Awesome, I was able to run the AP without internet sharing command and connect successfully from iPhone. That last missing piece is my accessing the local app(s) running on the AP from the iPhone browser. I tried navigating the the AP's IP address with no luck Commented May 6, 2017 at 15:36
  • @Ricky Brown Are you able to use android , i can update my answer
    – GAD3R
    Commented May 6, 2017 at 16:19
  • No I was unsuccessful with android, your update will be most welcome! Commented May 6, 2017 at 16:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .