14 votes

How to port-forward internet using Android Hotspot to PC?

In most cases you won't be able to make inbound connection when using Mobile Data because of CGNAT and firewalls at ISP level, as explained by acejavelin in comment. To know the problem in detail and ...
Irfan Latif's user avatar
  • 20.2k
12 votes

How to use adb over Mobile AP (Portable wifi hotspot)

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....
aksh1618's user avatar
  • 221
8 votes
Accepted

How to set a tethered Wi-Fi connection (tethered to another phone via Android personal hotspot) as "metered" connection

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 "...
xavier_fakerat's user avatar
8 votes
Accepted

How to change the default hotspot DHCP IP address range on Android?

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, ...
Irfan Latif's user avatar
  • 20.2k
8 votes
Accepted

How to turn on the wi-fi hotspot using command line with root?

connectivity service does not have a method to start Wi-Fi hotspot. tethering service indirectly calls wifi service which you can call directly. startSoftAp and startTetheredHotspot methods start the ...
Irfan Latif's user avatar
  • 20.2k
6 votes

How do I disable the Mobile Hotspot feature?

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 ...
Igor's user avatar
  • 61
6 votes
Accepted

How can I permanently change my hotspot tethering IP address?

Note: Adding / removing IP address requires root access. METHOD 1: Before Android Pie, tethering IP (192.168.43.1) was hard-coded (1, 2). But now it's randomized on each session(3). You can use ...
Irfan Latif's user avatar
  • 20.2k
6 votes
Accepted

How can I permanently assign a static IP address to Wi-Fi or USB tether clients?

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. ...
Irfan Latif's user avatar
  • 20.2k
5 votes

How configure the DHCP settings of WIFI Tethering (Hotspot) on Android?

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 the WiFi hotspot feature. Here's where to find ...
Trent's user avatar
  • 51
5 votes

What is the functionality concept behind Wi-Fi sharing (aka Wi-Fi Profile share)?

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 ...
xavier_fakerat's user avatar
4 votes

How to share VPN connection with devices on hotspot?

Android doesn't redirect hotspot traffic through VPN network as far as I have tested on Pie ROM (almost stock; custom ROMs might have different implementations or some specific settings). The reason ...
Irfan Latif's user avatar
  • 20.2k
3 votes

Port forwarding during USB tethering

There are 2 adb commands: adb forward adb reverse As you mentioned in the comment, you are probably looking for adb reverse which works like this: adb reverse tcp:<remote> tcp:<local> ...
Eugen's user avatar
  • 254
3 votes

How do I disable the Mobile Hotspot feature?

Erase this file (with root): system/bin/hostapd
Pdf's user avatar
  • 31
3 votes

Does Android have support for IPv6 tethering?

It should be available since Android 7. https://android.googlesource.com/platform/frameworks/base/+/7747fd4/services/core/java/com/android/server/connectivity/tethering/IPv6TetheringCoordinator.java ...
Mygod's user avatar
  • 191
3 votes

How to use Android device as router without cellular connection?

If you have root access and don't mind working on CLI, a shorter version of script used for How to use Android in Wi-Fi repeater mode? can be used to create a hotspot network provided that your WiFi ...
Irfan Latif's user avatar
  • 20.2k
3 votes

How to configure and Enable WiFi Hotspot through terminal without root

Setting and enabling hotspot (software access point) is possible by calling methods setWifiApConfiguration and startSoftAp of wifi service. But at least since Android 8, the former requires permission ...
Irfan Latif's user avatar
  • 20.2k
3 votes

Set android as internet gateway to local router (Not mobile hotspot)

With some help from the answers by @Irfan Latif linked in the comment and here, and by examining the output of iptables -L and iptables -t nat -L in various scenarios like Hotspot, BT tethering, USB ...
ManSamVampire's user avatar
3 votes
Accepted

Make a phone call in one SIM and simultaneously browse with the other

GSM Arena says your phone has SIMs in DSDS mode To achieve what you want you need a phone with SIMs in DSDA mode See What is the difference between dual sim active and dual sim stand-by? So, sorry, ...
beeshyams's user avatar
  • 40.7k
2 votes

How configure the DHCP settings of WIFI Tethering (Hotspot) on Android?

Default DHCP IP address range is hard-coded, so you can't change it without rebuilding ROM with modified source code. Or use a little hack. Replace /system/bin/dnsmasq (the DHCP/DNS server up to ...
Irfan Latif's user avatar
  • 20.2k
2 votes

Port-forwarding on Android 2.3.6 wifi-tether using Port Forwarder app

I am not sure which version you're running, here is my advice. The cause you're probably blocked, is due Android's firewall and strong Se-Linux policy. Since you have a full root access, you can get ...
fugitive's user avatar
  • 121
2 votes
Accepted

How to set android WiFi hotspot password on Android 4.1.2

To access the hotspot settings you have to keep (tap-hold) your finger on the same field Portable Wi-Fi hotspot for a few seconds, then release the finger. Unless there's a menu icon (three dots) on ...
dr_'s user avatar
  • 744
2 votes

OnePlus 3: Disable hotspot turning off automatically

Workaround when you are (like me) dependent on the Wifi hotspot: Create a script with Automate which automatically reactivates the hotspot:
Skyr's user avatar
  • 121
2 votes

OnePlus 3: Disable hotspot turning off automatically

Nougat update for OnePlus 3 and 3t is extremely fresh (I managed to upgrade it only using a VPN to Canada). This must be one of the features which still needs to be polished. The checkbox is missing ...
Csaba Toth's user avatar
2 votes
Accepted

How do I disable the Mobile Hotspot feature?

In addition to the other answers, I'd like to add that you can alternatively remove the execution permission from that file: su mount -o rw,remount /system chmod 0644 /system/bin/hostapd This ...
iBug's user avatar
  • 7,727
2 votes

Getting around a tethering block with European prepay SIM

First I would recommend using a VPN service to prevent your ISP from inferring your avoidance of the ban by sniffing your internet traffic. It would be best to pay for one, as free VPN services ...
Gabriel Fair's user avatar
2 votes
Accepted

How to use Private DNS on Android Pie for tethering?

DNS has traditionally been part of libc. Android's Bionic libc depends on netd for traditional DNS as well as Private DNS (DoT) implementation. See this answer for more details. Since every app runs ...
Irfan Latif's user avatar
  • 20.2k
2 votes
Accepted

What are AP Bands?

Q1: What is their use These 2 bands, 2.4GHz and 5GHz, are extensively used in consumer technologies for the transmission of data wirelessly. They are both free to use, no need to apply for a license....
Reddy Lutonadio's user avatar
1 vote

Port-forwarding on Android 2.3.6 wifi-tether using Port Forwarder app

The answer is your provider blocks port 80, however if you switch to port 443 they can not block it because port 443 has to have two way communication unblocked for https to send and receive responses....
Chris Zolinski's user avatar
1 vote

Wi-Fi hotspot timeout setting gone in Nougat 7.0 , 7.1, but timeout has not

Yes, it is because of inactivity timeouts. But without rooting the device I cannot determine for sure if it is that specific hostapd ap_max_inactivity=300 default, but I believe it is. I'm not sure if ...
JVD's user avatar
  • 161
1 vote

Automatically disable mobile hotspot when no device is connected, using Tasker

I know this is an old thread, but i did not find any solution anywhere when i wanted. So just posting the solution for other enthusiasts. Ok so i just added a time profile with 5mins interval (...
Sree Menon's user avatar

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