?
Solved

Retrieve name of current wireless network

Posted on 2011-10-13
12
Medium Priority
?
349 Views
Last Modified: 2012-05-12
Please let me know how I can retrieve the name of the wireless network my machine is currently connected to, through Java code.

Thanks!
0
Comment
Question by:dshrenik
12 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 36964188
Try to find out, for your OS, how to do it at the command line and then Runtime.exec the utility in question
0
 
LVL 47

Accepted Solution

by:
for_yan earned 1500 total points
ID: 36964206
0
 
LVL 47

Assisted Solution

by:for_yan
for_yan earned 1500 total points
ID: 36964279
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 13

Assisted Solution

by:George K.
George K. earned 500 total points
ID: 36965023
This must be exactly what you are looking for: http://www.monolith81.de/mognet.html
It 's open source in java.
0
 
LVL 13

Expert Comment

by:George K.
ID: 36965040
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36965101
This last references is for modile devices which have naturally much more available Java resources for wireless communication.
I understood that original question was about general Windows machine.
0
 

Author Comment

by:dshrenik
ID: 36965116
That's right, I want it for a Windows machine.
Will be great if it works for a Max as well.
0
 
LVL 47

Assisted Solution

by:for_yan
for_yan earned 1500 total points
ID: 36965151

As I mentioned, that seems to be not that trivial task especialy in the world of free java,
again references to the same jwlanscan or not very
obvious hints about getting from the syste with Runtime.getRuntim().exec(...);
and some folks even more pessimistic, see here on the same subject:

http://stackoverflow.com/questions/5378103/finding-ssid-of-a-wireless-network-with-java
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36965260


http://osxdaily.com/2007/01/18/airport-the-little-known-command-line-wireless-utility/

looks liket this arirport command together with
Runtime.getRuntime().exec(...)
can really help you on Mac - check if the command really works on your MAC
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36965352
On windows try

ipconfig /all

or

netsh

Don't know if those are showing SSID for wireless networks, and I cannot check right now
as I don't have any wireless connections now.

As this seesm to ne not very popular task to determine SSID on non-mobile devices,
can you explain why do you need it?
Maybe what you need can be achieved through some other means, that's why most of the folks
were not very interested in SSID names?


 
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36965369

some folks claim that it will print it on Vista (and maybe on Windows 7) with this command:

netsh wlan show networks mode=bssid

but on XP it does not know
netsh wlan
command

http://www.howtofixcomputers.com/forums/windows-xp/display-ssid-command-line-79146.html
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36965407
It looks like this tool can help with this task on XP

http://www.symantec.com/connect/articles/how-capture-and-deploy-wlan-profiles

even looks like it is free though it is from Symantec
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn different types of Android Layout and some basics of an Android App.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question