iPhone Personal Hotspot not discoverable - ios

I'm building an application which allows to connect an other device to my iPhone's hotspot. After enabling the "Personal Hotspot" in the iPhone settings, my other device detects the hotspot...
I use this command to check if the hotspot is on the network:
$> sudo iwlist wlan0 scanning | grep MyDeviceName;
ESSID:"MyDeviceName"
But if I leave this setting view (on my iPhone) and I open any other app that need internet (example: Safari), the hotspot is not any more discoverable ... until I go back on the "Personal Hotspot" setting page.
$> sudo iwlist wlan0 scanning | grep MyDeviceName;
(no result)
I've tested this command on ubuntu 14.10 and Raspbian, but my macbook and iPhone don't see the hotspot the network list.
I is created with iPhone5(iOs8.3) and iPhone6(iOs8.4) on iOS 8.

From Apples official Get help with Personal Hotspot in iOS support page:
Your device will stop broadcasting Wi-Fi if you put it to sleep or if 90 seconds elapse and no connected devices use Wi-Fi. To share your Wi-Fi network again, tap Settings > Personal Hotspot.
But my experience is that the devices stops broadcasting the Wi-Fi directly when you leave the Personal Hotspot settings page.

Related

Windows dns-sd (Bonjour/ZeroConf) did not discover iPhone service via USB

I have a Bonjour _http._tcp. service published on iPhone. With the iPhone Wifi Off; running the following dns-sd command on MacBook's terminal:
dns-sd -B _services._dns-sd._udp
then connect the iPhone to MacBook with USB Lighting cable, dns-sd would discover the following iPhone service:
Timestamp A/R Flags if Domain Service Type Instance Name
19:22:45.126 Add 3 5 . _tcp.local. _http
disconnect the USB Lighting cable from the MacBook would show:
Timestamp A/R Flags if Domain Service Type Instance Name
19:22:45.126 Add 3 5 . _tcp.local. _http
19:23:53.924 Rmv 1 5 . _tcp.local. _http
However, repeating the above steps (running dns-sd, connect and disconnect USB Lighting to PC) on Windows 10 PC, dns-sd did not discover the service.
With the iPhone Wifi On, dns-sd on PC would discover the iPhone service:
Timestamp A/R Flags if Domain Service Type Instance Name
19:32:36.238 Add 2 13 . _tcp.local. _http
when the iPhone Wifi Off, dns-sd on PC would show:
Timestamp A/R Flags if Domain Service Type Instance Name
19:32:36.238 Add 2 13 . _tcp.local. _http
19:33:38.471 Rmv 0 13 . _tcp.local. _http
I had Bonjour SDK v333.10 installed from https://developer.apple.com/download/more/?=Bonjour%20SDK%20for%20Windows; and iTunes is working fine (can show the iPhone) on the PC too.
Why dns-sd (Bonjour/ZeroConf) on PC did not discover the iPhone service via USB?
Many thanks.
Bounjour communication is Socket base. When the iPhone is connected to the MacBook via USB cable, MacBook assigns a private IP address (169.254.x.x) to the iPhone.
Using Discovery - DNS-SD Browser on MacBook, when the iPhone's wifi is Off, Discovery shows the discovered Bonjour service via USB, with the private IP address:
When the iPhone's wifi is On, Discovery will show the discovered Bonjour service with two IP addresses (one wifi's, and one USB's):
Therefore, dns-sd on MacBook was able to discover the service on iPhone without wifi.

Able to make a VPN connection from client to the tunnel_server (using apple's SimpleTunnel app) but unable to browse the internet on the device

I built the SimpleTunnel sample app (provided by apple) and am running the VPN client on a IOS device and the VPN server (tunnel_server) on a MAC running OS 10.11 (OS X El Capitan)
On MAC :-
$ sudo ./tunnel_server 550 ../../tunnel_server/config.plist
Response :-
tunnel_server[87725:2604682] Starting network service on port 550
tunnel_server[87725:2604682] Network service published successfully
On IOS device :-
Next I ran the PacketTunnel app on my IOS device. Added a VPN configuration with the correct IP address (the IP address of the MAC running the tunnel_server) and the port number (port number for the tunnel_server which is 550).
Next I try to connect to the VPN from the IO device and this seems to go through fine as I see the VPN sign in status bar.
Response on the screen running tunnel_server :-
tunnel_server[87739:2606312] Accepted a new connection
tunnel_server[87739:2606312] Allocated address Optional("10.8.0.15")
However I am not able to browse the internet using Safari on the IOS device (it times out), but am able to do the same from the MAC.
Any insights on what I might be missing ?
Please note that my MAC doesn't have OS X server installed. Also I did run the following two comands from a terminal before starting the tunnel_server on the MAC
sudo sysctl net.inet.ip.forwarding=1
sudo sysctl net.inet.ip.fw.enable=1

Usb WiFi Dongle RaspberryPi

I want to set raspberrypi network ssid and password over Android application. My problem is how can I do. I know command line method or raspi wifi settings in desktop. I just want to do usb wifi dongle setting over Android app.
Have you tried ssh applications on android ? You can remote access Rpi if both your phone and Rpi are on the same network. Hope it helps.
You can edit the configurations using command line. hope you are using Linux.
Open the wpa-supplicant configuration file in nano:
network={
ssid="The_ESSID_from_earlier"
psk="Your_wifi_password"
}
Now save the file by pressing Ctrl+X then Y, then finally press Enter.
At this point, wpa-supplicant will normally notice a change has occurred within a few seconds, and it will try and connect to the network.
And if not
sudo ifdown wlan0 and sudo ifup wlan0, or reboot your Raspberry Pi with sudo reboot.

Is it possible to scan while running hostapd?

I am using hostapd to create an adhoc WPA secured wifi network, everything is working fine. From another machine I can connect with no issues.
However when hostapd is running the command:
iwlist wlan0 scan
returns:
wlan0 Interface doesn't support scanning : Operation not supported
If I kill the hostapd process and bring up the wlan0 interface then scan works correctly and returns the ssids of nearby networks.
I want to be able to scan while hostapd is running. How to do this?
This capability depends on your wireless chipset. Some support this and others do not.

Blackberry Connection refused when deploying Phonegap app to device

)
I want to deploy my app that is created with Phonegap to my BlackBerry Z10 device.
I created some Hello World basic app with Phonegap, then in the terminal (Mac OS Lion) I ran following command:
/Users/macbook/Documents/BB10APP/cordova/run BBZ10
Everythings seems to work fine, but in the end I get a connection error:
[BUILD] BAR packaging complete
Error: Error: Cannot connect: Connection to https://169.254.x.x:443 refused. Please check IP address settings for the target. You may have to reboot the target.
What could be the problem with the connection?
And is there some other tools that I can use to just send the app via USB to the device like on Android?
Thanks :-)
I found a solution if anyone wants to know:
You have to use the device IP address and not the developer IP that is found in the developer settings on the device (where you see your developer token).
And then it will work (don't ask me what the developer ip is for, just annoying to lead developers in a wrong direction).
The device ip can be found in some settings entry on the device (I don't remember in which unfortunately, but it is there). Just dont use the ip from the developer menu that wont work :-)
There are two IPs in Blackberry
IP that is appearing on bottom part of Controller EX. ( 192.168.139.129)
IP that is configured in Blackberry simulator (Security and Privacy -> Development Setting)
EX. ( 169.254.0.1)
Using Controller IP "Network connection problem" issue will be solved
D:\bbndk\hello\platforms\blackberry10\cordova>target.bat add mydevice 192.168.139.129 -t device --password 0000 --pin 00000000

Resources