Reputation: 1142
My application has to connect to PC via WiFi.I need to scan and display all the PC's connected in the LAN,to which the WiFi router is connected.Is it possible to obtain all the names of the PC's connected.or rather I could get the IP of each system?
I found a code blockwhich scans for the WiFi network...But I think that is not i need...
The code block is :
wifiList = mainWifi.getScanResults();
for(int i = 0; i < wifiList.size(); i++){
sb.append(new Integer(i+1).toString() + ".");
sb.append((wifiList.get(i)).toString());
sb.append("\n");
}
Can I get an apt method for my problem?
Also my android application has to interact with the PC,via a Server program in Java,which i have successfully implemented using socket programming....Guys pls help....
Thnx in advance....
Upvotes: 1
Views: 2023
Reputation: 8176
Short answer: yes. Longer answer: way too much information to talk about in an SO post. I'd start here and see if there's a way to make that do what you need.
Upvotes: 1