mrtejas99 / wifi-extender

A WiFi repeater built around Raspberry Pi under 10 US$
GNU General Public License v3.0
90 stars 29 forks source link

Access Point Clients #14

Open bartenderck opened 2 years ago

bartenderck commented 2 years ago

Is there a quick way to tell which clients are connecting through the Raspberry Pi AP extender? I’m using this on a RPi Zero W and so far so good. Thanks for the code and tutorial.

Darren-Br commented 2 years ago

You could use tools like nmap or nbtscan to search on the Extenders ip range of 192.168.7.1/24 to see which clients are connected, for example by running "nbtscan -v -s : 192.168.7.1/24" on the command line

bartenderck commented 2 years ago

You could use tools like nmap or nbtscan to search on the Extenders ip range of 192.168.7.1/24 to see which clients are connected, for example by running "nbtscan -v -s : 192.168.7.1/24" on the command line

I assume I would need to install nbtscan to do this?

Darren-Br commented 2 years ago

Yep with a simple "sudo apt-get install nbtscan"

bartenderck commented 2 years ago

Yep with a simple "sudo apt-get install nbtscan"

Thank you for your help but I am having this error message:

pi@raspberrypi:~ $ nbtscan -v -s : 192.168.7.1/24 192.168.7.0 Sendto failed: Permission denied 192.168.7.255 Sendto failed: Permission denied pi@raspberrypi:~ $ sudo nbtscan -v -s : 192.168.7.1/24 192.168.7.0 Sendto failed: Permission denied 192.168.7.255 Sendto failed: Permission denied

Thank you for helping me through this.

mrtejas99 commented 2 years ago

That means there is no device connected since 192.168.7.0 is the network address(a device cannot have that as IP) and 192.168.7.255(broadcast address). Had an actual device be connected, it would have shown

bartenderck commented 2 years ago

That means there is no device connected since 192.168.7.0 is the network address(a device cannot have that as IP) and 192.168.7.255(broadcast address). Had an actual device be connected, it would have shown

I know a few devices are connecting through the repeater because I have checked their IP address, example 192.168.7.7 or 192.168.7.127, but they aren’t showing up on my list. How do I see the list?

mrtejas99 commented 2 years ago

you can use nmap sudo nmap -sn 192.168.7.1/24