0

what is the java code to get ip address and mac of devices connected to my wifi in laptop?? all i am getting here is realted to android. i need for desktop apllication. Wifimanager class only helps for andriod based project.

Kirarahul
  • 13
  • 1
  • 3

1 Answers1

1

So as you want to create sniffer-like application it is not possible to achieve using pure java. You will have to use some native calls to OS functions or even to HW driver. Java does not provide such low level access out of the box.

Antoniossss
  • 31,590
  • 6
  • 57
  • 99
  • can u refer some ways to do the above. codes, pdf, ieee papers anything will do – Kirarahul Feb 01 '14 at 07:04
  • Very popular sniffing software is Wireshark. It uses WinCap library http://www.winpcap.org/ for sniffing the network. To use that you would need to write your own native interface or look for such in web. It will involve JNI and C programming, I am not sure if it is worth of trying as it will need a lot of work. – Antoniossss Feb 01 '14 at 07:10