A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
26

Unfortunately, there is no way to change the IP address range for the builtin tethering support, even in CyanogenMod. The Wi-Fi hotspot IP is hardcoded in android.net.wifi.WifiStateMachine.startTethering(); the USB tethering IP is hardcoded in com.android.server.connectivity.Tethering. However, if your phone is rooted, you can try using third-party apps for ...


24

It is not detectable, but using tethering on Android with an second device leaves a lot of traces: User-Agent Headers within HTTP that come from non-mobile browser Increased Traffic consumption Connection to services that are not available on Android/Smartphone devices (e.g. World of Warcraft) and many more I can't think of atm. But I have never heard of ...


21

The Android builtin wifi tethering is designed to use 192.168.43.1/24 as the server, with netd handling the tethering, using dnsmasq. First DNS range is 192.168.42.1-254 and and 2nd DNS range is 192.168.43.1-254. Netd is not easy to change. It requires a socket to communicate with it, and that socket is taken when android starts tethering. But going through ...


8

There is a rather hidden feature, that will let you achieve this: This option is found under Settings > Data usage (Wireless and Networks). Tap on the three dots in the top right corner, and press "Mobile Hotspots." (In android 4.3) In later versions of android the similar option is "Network restrictions" > Metered connections Next you'll see a list ...


7

In Android 4.2 and later, you can tell Android which Wi-Fi networks are mobile hotspots. In the device Settings, go to the Data usage page, then open the overflow menu (the three dots in the top-right) and click Mobile hotspots. It shows a list of Wi-Fi networks known to the device: tick any that are mobile hotspots. Then, when you're on a network that's ...


5

Here's a version I developed that does it exactly like this - be aware there could be bugs in this, it may not work for CDMA/EVO as am in the EU using GSM! It is a client/server based architecture. Install To install the application, do the following: Plug in cable into device adb install WifiTether3G-release.apk The gist of the app is this: Server ...


5

If you have no reason to why the wifi drops, you might try changing the wifi sleep policy. The wifi sleep policy handles when or if the wifi connection shall switch to mobile data. If this option is set to the default value, When screen turns off, wifi connection automatically switches off when the phone has been idle for a while. You can try setting this to ...


5

Turn off mobile data usage. Go to Settings->Wireless and networks->Mobile network(you should uncheck this). Some manufacturers may have a widget for this, such as HTC did for my Incredible(v1).


5

As of version 1.2.5, tethering has been included in AFWall+, you should only need to enable (Tethering) - DHCP+DNS services


5

I know this is an old post, but thought I would provide an update. It appears some manufacturers and versions of Android now DO allow for the changing of the IP subnet range for the DHCP server through the UI when using WiFi hotspot feature. Here's where to find it on an HTC One M8 running Android 6.0. YMMV. From the Mobile Hotspot screen, click the 3 ...


5

Take a look at Network Discovery -- it lists all devices within the same network, together with some details on them, as e.g. IP, MAC address, available services: Network Discovery (source: Google Play; click images for larger variants) Other port scanners will do as well.


5

Android uses dnsmasq as its DHCP/DNS server (up to Pie). So create the configuration file /etc/dnsmasq.conf with option dhcp-host=<MAC>,<IP> (1). Root is required to place this file. Since /etc is a symlink to /system/etc, /system partition needs to be mounted R/W. Make sure you don't break dm-verity if enabled on your device. Set permissions: ...


4

Try enabling airplane mode. It will shut down all the radios on your device - cell, wifi, bluetooth. Then try explicitly turning the wifi back on. Not all devices support this - driver issues, I think - but in many you will wind up with the cell radio disabled and the wifi on.


4

On Android Device: Make sure USB Debugging is enabled in Developer Options. Set adb port prop: If rooted: Open a terminal emulator (like termux) and run the following commands: su setprop service.adb.tcp.port 5555 If not rooted: Connect your device to PC using usb and run on PC terminal/cmd: adb tcpip 5555 You can disconnect after this and continue on ...


4

Download Barnacle Wifi Tether This app will load it's OWN drivers and actually use your phone as a modem. I have used it once before with my X8 Android 2.1 also.


4

Here is the ultimate answer: First, on your phone, install a terminal-emulator from Android market, then run cat /proc/cpuinfo which will show you the detailed processor information of your phone (ARM5 in my case). Afterwards, you need to install an ARM5 cross-compiler environment on your Linux box (download Ubuntu and VirtualBox if you are a Windows/...


4

I had the same problem with wifi tethering after I installed Droidwall. Though the wifi connection was successful but I got no internet access. I got it working simply by adding the DNS in my laptop. Hope, it works for you or anyone facing the same problem. Change/Add DNS 4.2.2.2 and 8.8.8.8 in your PC/Laptop. That's it.


4

Basically it is possible to control/watch over every data transferred by just analyzing the traffic. To do so you could use something like Wireshark, but then a lot of Internet traffic today is encrypted, which would make it impossible to gain anything from it. To access the data of connected devices would require certain other tools and would very likely ...


4

I managed to solve this without deleting hostapd file (with this method you can easily reactivate hotspot functionality renaming hostapd back to its original name). Root your phone Open up adb connection Enter these commands: su cd system cd bin mount -o rw,remount /system mv hostapd inactive_hostapd mount -o ro,remount /system Reboot your phone and you'...


4

After a lot of digging the clue came from Wi-Fi Direct. The concept explained Wi-Fi direct is a wireless standard that allows creation of a connection between any two devices without a wireless access point (or going through a router). Wi-Fi direct uses a Wi-Fi protected setup (WPS) protocol when connecting two devices. Additional protocols have ...


4

NOTE: Root is required. Default DHCP IP address range is hard-coded (1), you can't change it without rebuilding ROM with modified source code. Or use a little hack. When you switch on tethering, what happens (at least): hostapd - the daemon which manages access points - is started. Network interfaces are set up, IP address is added to Wi-Fi interface (...


3

Maybe this is too late for some of you but this is a solution for Android 4.2: Basically you need TUN module since the standard configuration does not include it: Google Play - TUN.ko installer Bluetooth thethering - fix solution


3

Most likely, your X8 is broadcasting the wireless network in ad-hoc mode rather than infrastructure (AP) mode. Android does not natively support ad-hoc wireless connections, which is why your tablet cannot see or connect to the hotspot. Your options depend largely on the state of your devices. If your phone is rooted then you can try a custom ROM or kernel ...


3

Android, starting from 4.0, does officially support a form of p2p wifi networking called Wifi Direct. A Wifi Direct-capable device can create an access point which any other Wifi-capable device can access. I don't know about Nexus 7 specifically, but Galaxy Nexus does support Wifi Direct so I'd presume that so is Nexus 7.


3

The WiFi password IMHO is only setup once, when you configure your device's hotspot. Lateron, you simply activate/deactivate it. To automate the latter, you could e.g. use Tasker: Profile "AutoHotspot": Condition: "Device Boot" Task: "WiFi Tether" → set On With this profile activated, your Hotspot would be automatically be enabled as soon as the ...


2

No, you don't need to have your phone rooted to enable a portable hotspot. Not quite sure why it isn't working for you, but here are the reasons it hasn't worked for me at various times. No cell data connection. I've tried using the hotspot as a relay to another wi-fi network without any success. The original wi-fi connection is shut down. Misconfigured wi-...


2

I had the same problem and solved it on a Samsung Captivate (Galaxy S - SGH-I896) with Rogers in Canada. The problem was an annoyance at first (disconnecting every 10-20min) but got worse one day when it stopped allowing tethering altogether with a message "This Account is not configured for Tethering. Please Contact Rogers Customer Care." Calling Rogers ...


2

You can't monitor your Wi-Fi network using tethering even if Android supports promiscuous mode for the Wi-Fi chipset. Reason: Tethering does NAT internally and assigns you an IP in a 192.168.* private range via a DHCP daemon running on your phone. There's no way you can see pure Wi-Fi traffic this way. What you can do: Have a custom firmware installed (e.g....


2

While your carrier wouldn't be able to directly detect you are using WiFi hotspot, they might notice that you are using a lot of data. This is often a red flag in their systems, and might get you a phone call and/or your bandwidth throttled/capped. WiFi hotspot is not available on all devices. For instance, my og Droid with stock ROM doesn't offer this due ...


2

Your Android phone (if that is what you mean by having two Android), should have a setting for Wireless Tethering. Open the Settings -> Wireless option in your Android phone and there you will get the option. You will need to provide a name to the network and then try to search for that name in the other phone, as a New Wireless Network. Also, your Data ...


Only top voted, non community-wiki answers of a minimum length are eligible