Ethernet wire disconnects wifi - wifi

I'm using a fingerprint reader on ethernet, and when i plugg in, the wifi get disconnected, not desactivated, just disconnected. I can't figure what's wrong so maybe you will.
Thanks,

My problem was in the BIOS. Thanks anyway !

What is the benefit of having both connections going at the same time. You can only utilize one and i would want to utilize the strong one of the two. A developer would say that is by design. Disconnect or connected and not utilize == the same thing.

Related

ESP8266 creates AP without any code

I can't for the life of me figure out why my ESP8266s create WiFi access points.
I plug it in and send an empty sketch, and it creates an AP called "ESP_28F2F8" and here the ESP is at 192.168.4.1.
I do not want it to create a WiFi network. I just want it to connect to one.
Has anyone else run into this issue? Is this perhaps some weird OS?
That's normal operation of the underlying Espressif's SDK. It remembers some of the settings in flash, like the last created AP and last WiFi network connected.
You need to run
WiFi.softAPdisconnect(true);
so the ESP disconnects all clients currently connected to it, disables AP and remembers it to flash.
If you might also need to disable automatic connection to the last WiFi network, you need to call:
WiFi.setAutoConnect(false);

Disconnect Chromecast when device leaves Wi-Fi network

I am developing an iOS application with Chromecast. I would like to disconnect the Chromecast (stop playing the content) when the device that sent the content leaves the Wi-Fi network. Is it possible to do this? How would you implement it?
Thank you!
Are you sure you want to do this? This is against the Cast UX design, and frankly, provides a bad user experience. Also, consider a case where your connectivity to the wifi is dropped temporarily for whatever reason, do you really want to stop the playback? What if there is another sender connected at the same time, do you still want to stop it? Lets say your phone goes to sleep and loses connectivity, do you want to stop the playback?
As for the possibility of doing it, it obviously cannot be driven from the sender side since it has lost its connectivity. On the receiver side, you get a callback when senders get connected or disconnected, along with a "reason" so you need to implement your logic there.

How to differentiate or identify if a wifi connection is a tethered network or real broadband network?

Due to work traveling we have to put up with a location with quite "unstable" internet connection.
The property owner has set the charges including his own "wifi" facility providing to us.
Because the network is quite slow and unstable, we are not sure of it is a real broadband network or rather tethered from "his mobile" - you bet things like this can happen...
So how to identify the connection?
If you just want to tell if the connection goes through a tethered cell phone connection or a land (fixed) broadband connection, one way to try is to run a trace route. Once you know the path of your hops getting to the Internet, with little research and correlation you might just find out.

How to make iOS believe there is Internet Connectivity

I am working on a web application for iOS that is going to be accesed from a local webserver in a network that has NO internet connectivity at all.
My problem is that everytime an iOS device is locked, it disconnects from the WiFi network, so when the device is unlocked again, it has to reconnect. Part of that reconnection process is determining if there is Internet connection (which there isn't). Until the process is not finished iOS does not allow any DNS resolution (so if I write http://10.0.0.1 it will go there, but not if I request http://something.local.com).
Since we control that network, we want to know how to does iOS verifies Internet connectivity so that we can fake the responses it expects.
I don't know if it's possible to resolve DNS without an internet connection on iOS, but if that's the case, that would be a way better solution since you don't need to mess with your router settings. Use my solution only if it really isn't possible with only code.
I'll suggest you to follow this guide: http://blog.jerodsanto.net/2009/06/sniff-your-iphones-network-traffic to check which actions your iPhone executes to detect an internet connection.
Using this information you could forward the is-there-internet-requests on your router to a local server which fakes the there-is-internet-responses.
This assumes Apple really uses an external server to detect this, which I'm not sure about. But it wouldn't hurt to give it a try!
Have you looked at the Reachability Class? You don't have to use the reachabilityForInternetConnection method, which checks if a default route is available. You can use the reachabilityWithAddress: method and check if your server is reachable.

How to specify that WiFi or 3G is required?

First of all, I know I can use UIRequiresPersistentWiFi to specify that my app needs WiFi.
But in fact, my app works fine with both WiFi or 3G. How can I express such a network requirement? It there any Info.plist key for this? Or is testing myself with Reachability the only way to go?
What exactly are you trying to do? If all you need is network access, then you don't have to do anything at all to make it work. Reachability can be useful, because it lets you quickly test if the network is available before attempting to connect anywhere, but that's only useful if you need to know if there is a network before even attempting to use it. Under normal circumstances, you can just attempt to use the network, and gracefully handle any errors that may occur.
My suggestion would be use SCNetworkReachabilitySetCallback (which gets called whenever the status of the network changes) and then throw an error if there's no WiFi or 3G connection.
b.t.w., all the keys UIKit supports in Info.plist can be seen at http://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html

Resources