Questions tagged [wifi]

GENERAL WI-FI SUPPORT IS OFF-TOPIC. Questions about hardware support should be directed to https://superuser.com. This tag should be used for questions about writing software that directly interacts with Wi-Fi devices.

wifi
Filter by
Sorted by
Tagged with
1307 votes
42 answers
715k views

Run/install/debug Android applications over Wi-Fi?

I thought there was a way to test your applications in development over Wi-Fi. Is this possible? I'd love to be able to untether my phone and develop wirelessly.
Naftuli Kay's user avatar
  • 89.6k
209 votes
7 answers
91k views

Github (SSH) via public WIFI, port 22 blocked

I'm currently on a public WIFI spot and I'm unable to use SSH (they probably blocked that port). However, I need that connection to do a git push. ➜ ssh -T [email protected] ssh: connect to host github....
sougonde's user avatar
  • 3,518
197 votes
15 answers
172k views

Detect network connection type on Android

How do you detect the network connection type on Android? Is it through ConnectivityManager.getActiveNetworkInfo().getType(), and is the answer limited to Wifi and mobile?
hpique's user avatar
  • 120k
128 votes
7 answers
201k views

Enabling WiFi on Android Emulator

How to enable WiFi on Android emulator? I have tried to find this but everyone is confusing WiFi with 3G.
salman khalid's user avatar
127 votes
16 answers
104k views

iOS – Run/Debug/Install builds over Wi-Fi

We have iPad and iPhone devices, but short of wires. Is there any way that we can install/debug the builds over Wi-Fi in iOS? I know the way in Android, but not of iOS.
user avatar
123 votes
14 answers
149k views

Connect Device to Mac localhost Server? [closed]

How do I allow any device, e.g., iPhone, to connect over a WLAN to my Mac's localhost server? On my Mac, I'm running a "Hello World" HTTP Node.js server that serves a page, which Safari opens ...
ma11hew28's user avatar
  • 124k
111 votes
5 answers
79k views

How to programmatically create and read WEP/EAP WiFi configurations in Android

How can I programmatically create and read WEP/EAP WiFi configurations in Android?
Alok Save's user avatar
  • 205k
110 votes
11 answers
93k views

iOS Detect 3G or WiFi

I am not sure if this is possible, but I have this scenario. I have a website displayed in my UIWebView which has the link set in a UISegmentedController. They website can detect if you are on wifi ...
jwknz's user avatar
  • 6,694
105 votes
1 answer
5k views

Adding a new network bearer to Android

I'd like to add new bearer(s) to Android (rooted/custom build), to be a peer with Wifi and GPRS. I have done some Android development and I am aware that (in Android 2.2) there are constants for ...
fadedbee's user avatar
  • 43.8k
98 votes
11 answers
142k views

Can Android do peer-to-peer ad-hoc networking?

Is it possible to set up Android in ad-hoc peer-to-peer wifi mode? For example, I would like to have one phone broadcast a message, and have all peers in the network receive the broadcast, without ...
Doughy's user avatar
  • 4,235
91 votes
10 answers
169k views

Android: How to Enable/Disable Wifi or Internet Connection Programmatically

Using the Connectivity Manager Class we can get access to either wifi or Internet Network: ConnectivityManager connec = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); // ARE WE ...
Rohit Sharma's user avatar
  • 13.8k
88 votes
11 answers
157k views

Get SSID when WIFI is connected

I'm trying to get the SSID of the WIFI network when my android device is connected to WIFI. I've registered a BroadcastReceiver listening for android.net.wifi.supplicant.CONNECTION_CHANGE . I get the ...
zmbq's user avatar
  • 38.7k
88 votes
7 answers
148k views

How to calculate distance from Wifi router using Signal Strength?

I would like to calculate the exact location of a mobile device inside a building ( so no GPS access) I want to do this using the signal strength(in dBm) of at least 3 fixed wifi signals(3 fixed ...
Ihab's user avatar
  • 2,235
83 votes
9 answers
120k views

How to call Wi-Fi settings screen from my application using Android

Normally I am getting Wi-Fi setting screen on the emulator by clicking on the Settings > Wireless controls > wifi settings. I need to go directly to the Wi-Fi settings screen from my program ...
Rajendar's user avatar
  • 831
76 votes
13 answers
133k views

Android turn On/Off WiFi HotSpot programmatically

Is there an API to turn On/Off the WiFi HotSpot on Android programmatically? What methods should I call to turn it On/Off? UPDATE:There's this option to have the HotSpot enabled, and just turn On/...
mxg's user avatar
  • 21.1k
67 votes
5 answers
214k views

How to connect android wifi to adhoc wifi?

I'm new on the android system. Is this correct, the android 2.2.1 WIFI only detects non-ad hoc wireless network? I was wondering if there's a way to connect my android to an ad hoc network set-up from ...
Cyril Horad's user avatar
  • 1,555
62 votes
4 answers
56k views

How to get name of wifi-network out of android using android API?

I thought that I should use NetworkInterface::getDisplayName. I got some name, but this name is different that this name which I can see, when I choosing to which network I want to connect.
noisy's user avatar
  • 6,603
58 votes
4 answers
43k views

Checking Wi-Fi enabled or not on Android

What would the code be for checking whether the Wi-Fi is enabled or not?
inforg's user avatar
  • 749
57 votes
7 answers
78k views

Wifi Connect-Disconnect Listener

Which listener does my class have to implement inorder to automatically check code if the wifi connects/disconnects? I'm able to manually check for wifi connection/disconnection but each time I need ...
Neha's user avatar
  • 569
56 votes
9 answers
92k views

How to programmatically connect to a WiFi network given the SSID and password

I am trying to replicate an existing Android Application that I made to iOS. In my application, I should be able to connect to a WiFi network given the SSID and the Password. The SSID and the Password ...
Razgriz's user avatar
  • 7,295
56 votes
4 answers
62k views

Android apps, communicating with a device plugged in the USB port

I'm thinking about an Android app (with possibly an accompanying physical device), and I'm trying to figure out whether this is something that's feasible. 1) Let's say I plug my Android to my PC. ...
Daniel Magliola's user avatar
55 votes
2 answers
62k views

Is there a standard that defines what is a valid SSID and password?

We are developing a wireless n/w configuration UI and need to check if a SSID is a valid one? Are there any restrictions on the character set? length ? anything more..
Anand G's user avatar
  • 551
50 votes
4 answers
58k views

How do the nl80211 library & cfg80211 work?

I want to learn about how nl80211 and cfg80211 work in detail, such as: function flow and how nl80211 interacts with network tools like wpa_supplicant and iw.
Rafal's user avatar
  • 1,120
45 votes
7 answers
71k views

Bluetooth and WIFI Printing for Android

We would need a portable printer (handheld, it is important) that can connect to android phone via bluetooth or wifi. What I know currently: No standard printing SDK available for Android this time ...
Gábor Lipták's user avatar
43 votes
3 answers
54k views

ADB, Wifi and Eclipse: how I can configure?

Recently I see that is possible to debug app development by use WIFI instead of USB debug method. I make a search and I found an app called abdWireless but I have a problem. How I can tell to Eclipse ...
David Rodrigues's user avatar
43 votes
9 answers
173k views

java.net.ConnectException: failed to connect to /192.168.253.3 (port 2468): connect failed: ECONNREFUSED (Connection refused)

I want to transfer some data between PC and a mobile phone with WiFi. This is how I get the WiFi IP address: String ip = String.format( "%d.%d.%d.%d", (...
Entel's user avatar
  • 639
42 votes
11 answers
68k views

Getting MAC address in Android 6.0

I'm developing an app that gets the MAC address of the device, but since Android 6.0 my code doesn't work, giving me an incorrect value. Here's my code... public String ObtenMAC() { WifiManager ...
Mazinger's user avatar
  • 653
42 votes
6 answers
22k views

Force Android to Use Wifi network with no internet

I am building an android app that needs to communicate over a WiFi network that will not have any internet access. The problem is that even when the WiFi is connected android chooses to use cellular/...
Lonergan6275's user avatar
  • 1,988
42 votes
2 answers
3k views

iOS / Too frequent rssi event from driver..?

So my question came up looking an the console output of some iOS 7.0.x devices via iPhone Configuration Utility the other day. I was puzzled to see several indications that the WiFi daemon registers ...
RTouris's user avatar
  • 421
38 votes
10 answers
95k views

Java getting my IP address

I am trying to get my Internet IP address in Java but I keep getting my local address (ie: 127.0.0.1), when my IP address is 192.168.0.xxx I am using the line: InetAddress.getLocalHost()....
Jary's user avatar
  • 1,521
38 votes
3 answers
82k views

How can I get a list of available wireless networks on Linux?

I would like to get a list of the wireless networks available. Ideally this would be via some C call, but I don't mind if I have to kludge it with a system call. Even better if the required C call or ...
richq's user avatar
  • 56k
35 votes
6 answers
68k views

Android: Simulate WiFi in the emulator?

I would like to check from my app whether the device has WiFi connectivity, but in order to do that, I must first find a way to get "WiFi" in the emulator. Just going to Settings -> Wireless controls -...
Felix's user avatar
  • 89k
34 votes
6 answers
56k views

How to enable/disable WiFi from an application?

I want to enable/disable wifi from my Android application. How can I do that?
Mustafa İrer's user avatar
34 votes
6 answers
22k views

BroadcastReceiver receives multiple identical messages for one event

I registered a receiver that listens to network events: <receiver android:label="NetworkConnection" android:name=".ConnectionChangeReceiver" > <intent-filter > <...
Sver's user avatar
  • 3,379
34 votes
5 answers
36k views

How to avoid delay in Android GCM messages / change heartbeat

I've been reading many posts regarding a GCM issue that affects some people. It seems that in some devices/routers/carriers the notifications suffer delays. I've experienced this issue with my router: ...
Ferran Maylinch's user avatar
34 votes
7 answers
508k views

use "netsh wlan set hostednetwork ..." to create a wifi hotspot and the authentication can't work correctly

I run netsh wlan show drivers and get the output containing Hosted network supported : Yes: Interface name: Wireless Network Connection Driver : Broadcom 802.11n Network Adapter ...
Weekend's user avatar
  • 1,541
33 votes
3 answers
52k views

Why is the WPA2-PSK key length limited to 63 characters?

I wonder why there is a limit of just 63 characters for the passphrase of WPA2-PSK. It's not even a power of two and looks very unusual to me, but surely there's some deeper meaning to this number.
ph4nt0m's user avatar
  • 958
32 votes
8 answers
23k views

Need Reachability version for ARC in iOS5

Using Apple's Reachability code in iOS5 I get a bunch of compilation errors as shown below. Any ideas on what is happening here? I'm using ARC so I have edited the standard code slightly to remove ...
millport's user avatar
  • 2,541
32 votes
13 answers
111k views

How to convert Wifi signal strength from Quality (percent) to RSSI (dBm)?

How should I convert Wifi signal strength from a Quality in percentage, usually 0% to 100% into an RSSI value, usually a negative dBm number (i.e. -96db)?
Irving's user avatar
  • 787
32 votes
7 answers
390k views

How to connect wireless network adapter to VMWare workstation?

How can I connect wireless network adapter to VMWare workstation ?(My Host OS is Windows 7 Ultimate, my Guest OS is Fedora 13 & my VMWare version is 6.5.0) I'm running Windows 7 on my Dell Vostro ...
Ehsan Khodarahmi's user avatar
31 votes
5 answers
35k views

Share Wifi credentials via NFC tag without special apps

I am looking for a way to create a NFC-tag that shares the wifi credentials of my network without my guests having to have any special NFC apps on their phone (other than whats coming with the phone). ...
Christian L's user avatar
31 votes
6 answers
36k views

Wifi Triangulation

What would be the best way to triangulate a wireless network passively. Are there tools available? Algorithms? Libraries? My goal would be to create a relative map of various objects that sends or ...
Loki's user avatar
  • 30.4k
30 votes
3 answers
68k views

How to create WiFi popup login page

When I go to a place with a WiFi hotspot (such as Panera Bread) and connect with my iPhone, the hotspot login page appears as a popup. That is, no matter what app I'm running or what web page I'm on, ...
Barry Brown's user avatar
  • 20.4k
29 votes
4 answers
44k views

Android WIFI How To Detect When Specific WIFI Connection is Available

I need to detect when I have network connectivity to a SPECIFIC WIFI network. For example: As soon as you walk into your house, and your phone picks up your home WiFi network, I would like a ...
ECH5030's user avatar
  • 424
29 votes
8 answers
53k views

How do I get the available wifi APs and their signal strength in .net?

Is there any way to access all WiFi access points and their respective RSSI values using .NET? It would be really nice if I could do it without using unmanaged code or even better if it worked in mono ...
LDomagala's user avatar
  • 2,194
29 votes
3 answers
74k views

Is Wi-Fi Direct connection possible within iOS devices and among Wi-Fi Direct enabled devices?

Is Wi-Fi Direct connection possible within iOS devices and among Wi-Fi Direct enabled devices? The objective is to enable communication between an iOS device and another device (not necessarily ...
RK-'s user avatar
  • 12.2k
29 votes
1 answer
23k views

Share WiFi-Settings as QR-Code for WPA2 Enterprise

I have found several sources describing a String Format used to describe WiFi-Access Settings in the form of: WIFI:T:WPA;S:mynetwork;P:mypass;; (example taken from zxing documentation) For basic ...
Lukx's user avatar
  • 1,283
29 votes
8 answers
82k views

How to disable WIFI Auto-connect in Android

Android saves WIFI details into WifiConfiguration class. When WIFI is ON and SSID, Pass-key details matches with WIFI network then Android auto connect with the particular WIFI Network. How to disable ...
Nimit 's user avatar
  • 1,714
28 votes
3 answers
12k views

About Geolocation in HTML 5

Google Maps can now pinpoint my location with street precision with the help of Firefox. I understand this is a new feature of HTML 5 compatible browsers and that the location is fetched by using ...
Alix Axel's user avatar
  • 153k
28 votes
5 answers
43k views

failed to authenticate to <ip> | adb wifi

When connecting a device with ADB Wireless, got failed to authenticate to <ip> adb devices gives the device shows up as unauthorized.
sivag1's user avatar
  • 4,834

1
2 3 4 5
120