Scan and connect to Wifi networks using Java

2019-02-12 15:37发布

Need to write a client, which can scan the available WIFI networks and connects to best known using Java. This might be desktop client which does this job. Any pointers would be helpful and appreciate your response.

2条回答
萌系小妹纸
2楼-- · 2019-02-12 16:02

I suggest you to act upon your operating system. And for each of the supporting operating system try to analyse the results of the command lines needed to connect the wireless devices. It is quite straight forward and You will not have to work with JNI libraries.

For example for windows you can see the ones introduced here, here and here and for the linux it is still easier.

查看更多
beautiful°
3楼-- · 2019-02-12 16:14

You'll have to rely on a JNI library since you can't access a wireless device directly in Java.

jWlanScan for Windows.

查看更多
登录 后发表回答