wifi

Getting IP addresses of the PC's available on wifi network in android

自古美人都是妖i 提交于 2019-12-04 20:53:12
I am able to establish connection between android and PC via Wi-fi. But this is done by hard coding the the IP address of the PC (server) in the android program. But I wanted to get IP addresses of the PC's available on the Wi-fi network programmatically. So please let me know how to scan for PC's on the network and get their respective IP address. Sam Holder can you not multicast a UDP packet on the network which the server listens for and responds to with a packet containing the ip address of the server in order to set up the connection? You should be able to find help on that topic, with

Scan Wifi Networks via objective-c in a Mac OS X app

时间秒杀一切 提交于 2019-12-04 20:48:43
问题 Is there a tutorial available which explains how to scan for available wifi networks via Objective-C in a mac app? I have been searching for the past few days but only found bonjour related results. I read that CoreWLAN framework is used for wifi scanning and communication, could anyone please guide me in this regards? I just want to create a program which scans for available wifi routers around. And then when I click on any of the router, it gives me a list of devices attached with that

How to check network provider name in iOS programming?

回眸只為那壹抹淺笑 提交于 2019-12-04 20:29:44
I need to check whether device has been connected properly to "My-Wifi" network or not. If it is connected then I will send some data to server otherwise not. Right now I am just checking with the Internet connection, using Reachability class. So how to check that? You can make use of CNCopySupportedInterfaces() call. CFArrayRef interfaces = CNCopySupportedInterfaces(); CFIndex count = CFArrayGetCount(interfaces); for (int i = 0; i < count; i++) { CFStringRef interface = CFArrayGetValueAtIndex(interfaces, i); CFDictionaryRef netinfo = CNCopyCurrentNetworkInfo(interface); if (netinfo &&

Google maps Android API getting wifi location

こ雲淡風輕ζ 提交于 2019-12-04 19:55:26
So I am working on this app that will get the location of a wifi hotspot by just detecting it using the sensor wifi of the phone (The phone is not actually connecting to the hotspot wifi, it just detect). I was doing some preliminary research before start developing the app, and it seems that the Google Geolocation API will do the work for me. However, it is not free (at least what I understood after reading through the API). I had checked other apps that detects wifi hotspot, and I am just wondering if those apps have their own database with all the wifi hotspot information (SSID, location

ways for a client to identify the specific access point it is connected to within a single SSID?

混江龙づ霸主 提交于 2019-12-04 19:37:37
The problem is as follows - there's a university campus wide wifi connection with a single SSID, say "campus-wifi". The user freely roams around campus, and the usual hand-off between access points occurs. My question is, is there any information at any layer of the network stack that allows the client to identify (any unique identifier is fine) the specific access point they're connected to, rather than simply the fact that they are connected to "campus-wifi"? If it's relevant, I'd like to be able to do this from mobile devices (android/iOS primarily). You can get the BSSID of the access

changed wifi advanced option from code but it won't work?

孤者浪人 提交于 2019-12-04 19:34:02
I used this code to change wifi Ip setting (Ip Address and gateway) you can see the full code here : full class WifiConfiguration wifiConf = null; WifiManager manager = (WifiManager) getSystemService(MainActivity.WIFI_SERVICE); WifiInfo connectionInfo = manager.getConnectionInfo(); List<WifiConfiguration> configuredNetworks = manager .getConfiguredNetworks(); wifiConf = GetCurrentWifiConfiguration(manager); setIpAssignment("STATIC", wifiConf); setIpAddress(InetAddress.getByName("192.2.2.2"), 24, wifiConf); setGateway(InetAddress.getByName("192.2.2.22"), wifiConf); manager.updateNetwork

iPhone VOIP in background

六月ゝ 毕业季﹏ 提交于 2019-12-04 18:18:52
I am developing an iPhone application that communicates with a non iOS device through Wi-Fi. My application is using VOIP.I have configured the streams and added the necessary UIBackgroundModes into my plist . The problem is that the application is not receiving any information from the external device, When it enters in background. Could somebody tell me if I am missing something? Divyang Mithaiwala Not sure about actual problem. Make sure following As per iOS background VOIP application it will allow only TCP connection to be alive & communicable in background. So if you/your stack use UDP

How to resolve “enter the password for credential storage” issue?

我怕爱的太早我们不能终老 提交于 2019-12-04 17:59:21
问题 So I am playing around with fiddler web proxy. I need to decrypt https traffic. So I am trying to put the fiddler root CA cert in my device trust store. But it keeps asking me "Enter the password for credential storage" . If i enter anything and click enter I see an Toast message saying Credential storage has been erased and the password prompt comes again. This goes on in a loop. For the record I have selected "Wifi" as the Credential use instead of "App n VPN" (not sure of that matters).

How to detect when WIFI is connected to internet?

别等时光非礼了梦想. 提交于 2019-12-04 16:46:09
I am building an Android app and I use the code below to detect whether there is a network connection. It works well and detects both mobile and WIFI networks. My problem is how to detect an actual internet connection. The code below returns true when connected to WIFI however the WIFI might not necessarily be connected to the Internet. The code protected boolean checkInternetConnection() { ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); // test for connection if (cm.getActiveNetworkInfo() != null && cm.getActiveNetworkInfo().isAvailable() && cm

Connect to Wifi [without Internet] with a high priority?

泪湿孤枕 提交于 2019-12-04 16:43:46
I have a problem. I develop a android app, which should also connect to a wifi [ without internet , just to controll a robot, webinterface: 10.10.0.1]. MY PROBLEM : If I connect to the robot wifi, Android prevents the connection and connect to my default home wlan. What can I change to connect to robot wifi without problems? My connection function: public static void connectToWifi(String ssid, String pass){ WifiManager myWifiManager = (WifiManager) getApplicationContext().getSystemService(Context.WIFI_SERVICE); WifiConfiguration conf = new WifiConfiguration(); conf.SSID = "\"" + ssid + "\"";