9

This has been asked for a few times before, but none recently or with the Pixel/Nougat specifically that I was able to find. Root is unavailable, so I need a way to do this as a regular user. I really just want to see what IP my Raspberry Pi got assigned by the Android DHCP. Also, if there's a way to set DHCP reservations to avoid having to look it up every time, I would love to know how to do that as well.

  • 1
    You won't find DHCP reservations but I observed that devices tend to get the same IP address they had earlier (don't know the time frame, though). – GiantTree Apr 10 '17 at 21:18
  • How about using third-party applications? I use Pixel Netcut for that. I also have a feeling Tasker can do this, but I will have to figure it out – xavier_fakerat May 10 '17 at 15:30
  • @xavier_fakerat I'd be willing to use one if needed (and feel free to write up an answer if you have something in mind). When I searched the app store, most things seemed geared towards the phone connecting to a wifi router and then viewing networks on that device. I didn't come across something that did exactly what I wanted (and was free, which would be my preference.) – thunderblaster May 10 '17 at 15:33
  • Honestly, I attached an LCD screen to my pi and got that to just output its IP, which resolved my personal problem, but I still would like to know the best way to address this for other devices in the future and think that it's a useful question others will undoubted have. – thunderblaster May 10 '17 at 15:35
6
+50

Most of the solutions known to me require root (as I noted in comments). However there is a third-party application that seems to be able to handle this task as well.

Hotspot manager claims to be able to monitor all connected clients on the hotspot. It gives the MAC Address as well as IP address of connected clients

Some other features include:

  • Managing multiple WiFi hotspots for different scenarios.

  • Monitoring all connected clients to your device.

  • WiFi auto recovery: WiFi state will be recovered if the hotspot is turned off (assuming either widget or the app to toggle).

See screenshots:

  • That looks promising and useful. Upvoted; leaving unaccepted to see if anyone else comes up with any other ideas. – thunderblaster May 10 '17 at 21:01
  • 2
    +1: confirmed to work on my own devices - edited in screenshots from them. Didn't ask for root permissions as far as I used it. I didn't even use the app's built-in hotspot settings, just turned on hotspot in the OS and it knows. – Andy Yan May 11 '17 at 0:40
11

Another "uglier" workaround involves using terminal , but it has an advantage if you already have terminal installed in your device.

Simply type ip neigh in terminal and you should see an output showing connected devices' ip addresses as well as mac address (but it looks a bit cluttered though)

See screenshot:

enter image description here

Screenshot (click image for larger variant)

The information in the terminal output includes :

  • IP address of connected client
  • MAC address (obscured in screenshot)
  • interface (wlan0)
  • state of connection (i.e STALE, REACHABLE etc)

Note: This does not need root permissions

  • 1
    Works great with adb shell as well! – slaadvak Sep 1 '17 at 18:41
1

Use Ksiri tool to list devices connected to your hotspot.

IMG:

Updated information on request: I was facing same issue on my Android Oreo, some tools on net available is filled with ads or asking for unnecessary permissions.

Just for this simple listing of which devices are connected, ads and special permissions, both were not necessary, so I have created this app, which will not ask for any permissions and neither shows any ads.

This is the first step of "Ksiri Tools" that I have created, further if any tooling things comes up, I will add same app.

I have not released any of my apps on play store, as I feel it's unnecessary to pay Google. You can download apk file and install. While installing you will be clearly shown by Android that this app doesn't require any permissions. So safe to use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.