Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Wi-fi AP hotspot - without internet

Tags:

android

wifi

There are lots of post on SO regarding setting up AP (Hotspot) on android mobile. However, in all these cases, the AP is a conduit to the outside internet world. In my case, I just want a server application running over a mobile setup as an AP. And let all the client android mobiles connect to it, send their data and disconnect if they like. No internet connection is assumed (i.e, no gprs/3g etc).

My observations: If I setup a wifi AP (via settings -> tethering and portable hotspots) when it is also connected to GPRS, then another android phone can successfully connect to this AP and send the data to the application. However, if I disable the GPRS, even though the client shows that it is connected to the AP, it can't seem to send any data. It seems that an external internet connection is a necessity for the AP mode to work.

Is this understanding correct? Or am I setting something wrong?

like image 811
G.A. Avatar asked Jul 27 '12 11:07

G.A.


People also ask

Can you use Wi-Fi hotspot with no internet?

If the mobile hotspot is working properly, open a web browser on your mobile device and make sure you can access various websites. If your mobile device can't access the internet, it won't be able to share its own internet connection with other devices on the hotspot network.

Why does my Android hotspot say connected but no internet?

Go to Settings > Wi-Fi & network > Wi-Fi, tap the hotspot you are connected to, and then tap the pencil icon at the top. Step 2. Tap Advanced options, change DHCP to Static from IP settings, enter a custom IP like 192.168. 1.20 in the IP address field, and tap Save.


1 Answers

I know that I am late to the party (more than 3 years late :) but I was searching for a solution to this problem and stumbled upon an easy workaround. I am using a Nexus 4 with Android 5.0.1 and I can easily configure my phone to use it as an Android Wi-fi AP hotspot - without internet. Just go to Settings / Data Usage and disable "Mobile data" option under the Mobile tab. Then enable the WiFi hotspot option as usual.

I was trying to get this working in order to play with a VirtualBox machine from VulnHub.com that asked for a Bridged Connection when I was commuting to work (no Internet, but with my laptop and my mobile phone I was able to make it :)

like image 156
Juanan Avatar answered Oct 27 '22 03:10

Juanan