Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wifi information in Java

Tags:

java

wifi

How can I get the MAC address, SSID, and signal strength of wifi routers nearby in Java? Preferably system independent, if not then Windows.

like image 531
Venus Avatar asked Apr 26 '26 20:04

Venus


2 Answers

I don't really think there's any system independent way to know that from Java.

On Windows you should be able to do that using Wireless LAN APIs, but you most probably need some JNI to have access to them.

like image 115
lapo Avatar answered Apr 29 '26 08:04

lapo


To get the Mac address you need to query the ARP cache. Which is not trivial and system dependant.

More here: Query ARP cache to get MAC ID

like image 40
Rafa de Castro Avatar answered Apr 29 '26 10:04

Rafa de Castro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!