Laptop doesn't get IP address when tethered via WiFi I'm trying to get an internet connection from my laptop via my SGS2. The phone is rooted, and I've tried two different WiFi tethering apps. I don't have a tethering plan (they want to charge me more than my home broadband!) so that's why I'm not using the native tether.

When my laptop connects to the WiFi hotspot, it fails to get an IP address. I guess this is due to the phone not running a DHCP server. I've tried the following:


Setting the IP of the interface to 192.168.1.99 and 10.0.0.99 (in case of standard /24 and /8 ranges) with x.x.x.1 as the default gateway.
The same as above, except with the public 3G internet-facing IP as the default gateway.
Setting the IP of the interface to the phone's public 3G internet-facing IP.


I've been unable to send ICMP pings to any IP address. I've also tried setting various DNS servers (private IPs, 8.8.8.8, etc.) but can't resolve any host names. It's like the traffic just gets black-holed at the phone.

Any ideas? I'd be happy to go with a USB tether, but my plan doesn't cover that and I've yet to find an app that'll allow me to get round it.
You should first check which IP address (and network) your hotspot is using. From the command-line (e.g. using a terminal app like Android Terminal Emulator or adb shell) you can figure this out with the command

ifconfig wlan0


If you rather want to avoid the command line, or your device uses womething other than wlan0 for the interface and you want to avoid guessing, OS Monitor is an app which tells you all the necessary details for each interface as well.

Once you've found out the correct data, you can specify those on your laptop: Use the IP of the interface for the gateway, and take network and mask accordingly.