How to check if my laptop is connected to the wifi only with Java NetBeans ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to check if my laptop is connected to the wifi only with Java NetBeans ?

I have a Javafx program where I send some text through mobile with sockets , now I want to detect if my laptop is connected to the wifi only , inside my program.

17th Oct 2018, 11:31 AM
Md. Rafsan Biswas
Md. Rafsan Biswas - avatar
1 Answer
0
most of the times no, you cant java doesnt provide such low level information. you'll probably need a native library and call the function using JNI
17th Oct 2018, 11:52 AM
Taste
Taste - avatar