So I've got two Wifi networks broadcasting on the one SSID, and unfortunately the Chromecast often connects to the wrong one with less signal strength. If you've rooted your Chromecast, you can change the wpa_supplicant settings directly to get it to connect to the right one.
This guide assumes you have busybox or other editing tools installed, as well as ssh access enabled.
SSH into your Chromecast
Code:
ssh [email protected]
Modify your wpa_supplicant.conf file, and add a bssid directive with the bssid of the access point you want it to connect to
Code:
busybox vi /data/wifi/wpa_supplicant.conf
Run
Code:
busybox killall -HUP wpa_supplicant
to reload the configuration
I've just discovered/tried this today, so I'll see how it pans out and I'm hoping it should improve my streaming performance.
Related
I finally connected my Touch Pro2 to my netbook running Kubuntu 9.10 via Bluetooth for Internet access and thought I would share. (for the two other guys running a Windows phone with a Linux machine, right?) There is a lot of stuff on the net, tried half of it, and eventually just figured it out on my own. Maybe I am just crap with Google. I don't see any reason why this wouldn't work with any other phone with the same Bluetooth stack as the TP2. (HD, etc?)
LAPTOP
Get KBluetooth running if it's not already (bluetooth tray icon)
Right click KBluetooth for the menu, you want Settings -> Bluetooth Adapters
Set the mode to discoverable. If you want to change the name, do so, but then exit and restart KBluetooth. (otherwise the settings don't seem to take effect)
PHONE
Turn Bluetooth on if it's not already, then go into the Bluetooth menus via Comm Manager.
Tap "Add a device" and add the laptop. Enter a PIN.
LAPTOP
Enter the PIN when the box pops up.
Set the discovery mode back to hidden.
Now go into the KBluetooth device manager and set the phone to trusted. (this probably isn't necessary but I did it)
(this part onwards you need to do every time you connect)
PHONE
Go to the 2nd tab in the Bluetooth menus (the list of devices) and tap the laptop. You should now see Bluetooth Networking. Give this a tap.
After a few seconds you will get a drop down box. Set this to "Share Internet connection" then press Continue at the bottom left.
Now you select the GPRS connection you want to use. Again press Continue when done.
You should get a yellow notification at the bottom of the screen saying connecting, then after a few seconds a screen with the laptop's name and MAC address.
LAPTOP
Now open a Konsole and run this command:
Code:
sudo dhclient bnep0
If it worked you will see something like this at the end:
Code:
bound to 192.168.0.102 -- renewal in 120808 seconds.
You should now be connected to the Internet
you can also use wi-fi router to connect.
Code:
iwconfig wlan0 mode ad-hoc essid wificonnection key 1234567890
ifconfig wlan0 up
dhcpcd wlan0
wlan0 is your computers wifi interface your might be different
mode ad-hoc turns the connection into ad-hoc mode
essid wificonnection - is the network name in this example wificonnection
key is whatever 10 digit wep key you assign the connection 1234567890 in this example
*the dhcpcd wlan0 line in the scrip assumes you are using dhcpcd change it to dhclient if you are using dhclient instead.
the above script should work with most distros of linux. make sure wifi-router is running before you run the script on your computer.
to connect using usb tethering you can use
Code:
modprobe cdc_ether
modprobe rndis_host
ifconfig eth1 up
dhcpcd eth1
make sure rndis_host cdc_ether and all required packages and dependencies are installed. i had it set up a long time ago dont remember the the exact packages needed to make this work. again your network interface might differ (eth1,eth2,ethX) and dhclient if your using dhclient instead of dhcpcd.
These are the two scripts i use to tether to my netbook running Arch Linux and Gentoo but should work for most linux distros.
hi guys,
i have been breaking my head to sort this out.
i'm not able to connect to my laptop internet via wifi on the Note. i have this application called connectify that automatically creates a wifi hotspot on my laptop (i don't have a router). with this im easily able to connect symbian devices on it (my old phones)
but the Note doesn't even detect this hotspot. so i researched a lot and finally found a galaxy sii modified file "wpa_supplicant" which i replaced in the system/bin folder of my GNote. now the phone detects the hotspot but remains stuck at "Obtaining IP address". the status doesnt change from this and not able to connect.
so again i played around and enabled static IP on the phone. i entered some ip address, gateway, netmask and DNS values i got on the net (for another internet connection bsnl 3g). (my own ip is not static, im trying to share a mts mblaze datacard connection) now im getting the "connected" status but when i go to browser it doesnt load up any website. please help. hope i am clear
in ipconfig my values show as follows
ipv4 address: 180.215.40.199
subnet mask: 255.255.255.255
default gateway: 0.0.0.0
i tried with the above values and its not even reaching the "obtaining ip address" status.
Sorry...had a question, but just figured it out myself...can't help you either though.
Regards,
ChaosDM
anjath said:
hi guys,
i have been breaking my head to sort this out.
i'm not able to connect to my laptop internet via wifi on the Note. i have this application called connectify that automatically creates a wifi hotspot on my laptop (i don't have a router). with this im easily able to connect symbian devices on it (my old phones)
but the Note doesn't even detect this hotspot. so i researched a lot and finally found a galaxy sii modified file "wpa_supplicant" which i replaced in the system/bin folder of my GNote. now the phone detects the hotspot but remains stuck at "Obtaining IP address". the status doesnt change from this and not able to connect.
so again i played around and enabled static IP on the phone. i entered some ip address, gateway, netmask and DNS values i got on the net (for another internet connection bsnl 3g). (my own ip is not static, im trying to share a mts mblaze datacard connection) now im getting the "connected" status but when i go to browser it doesnt load up any website. please help. hope i am clear
in ipconfig my values show as follows
ipv4 address: 180.215.40.199
subnet mask: 255.255.255.255
default gateway: 0.0.0.0
i tried with the above values and its not even reaching the "obtaining ip address" status.
Click to expand...
Click to collapse
I had the same problem before, what I did is to use a different wpa_supplicant then copying it to /system/bin, changing its permission (just copy the original wpa's permission) and rebooting afterwards.
It worked for me in stock LA4 Firmware (2.3.6). But most of the time i had to set the wifi setting to static ip so that it will connect instantly so I recommend you do the same if it doesnt connect automatically.
Advali said:
I had the same problem before, what I did is to use a different wpa_supplicant then copying it to /system/bin, changing its permission (just copy the original wpa's permission) and rebooting afterwards.
It worked for me in stock LA4 Firmware (2.3.6). But most of the time i had to set the wifi setting to static ip so that it will connect instantly so I recommend you do the same if it doesnt connect automatically.
Click to expand...
Click to collapse
sorry to bring this old thread up,
but since the ICS update it seems that the wpa_supplicant replacement no longer worked ,,,after replacemant you wont be able to even turn the wifi on
wondering if there's any other way or could someone plz modify the wpa_supplicant file from the new ICS rom so to creat a new wpa_supplicant that works on ICS?
thanks!
after the latest update of Connectify, my note can connect to the hotspot by connectify without any problems
Yes indeed
Hey there,
I would like to use reverse tethering over my usb cable.
Before I start I'll let you know my setup:
Windows 7 x64 machine, sdk (inc. adb) installed but adb seems to make problems
i9000 running infinitum 2.1 with devil2 v0.72
These are the steps I used:
-connect the phone
-activate usb-tethering on the phone
-PC: change the ip on the new network adapter to 192.168.2.1
-PC: set my local area connection to share my internet connection with the new network adapter
-PC: add http service to the shared internet services
-open terminal on the phone
-executing the following commands:
Code:
ifconfig rndis0 192.168.2.2 netmask 255.255.255.0 up
route add default gw 192.168.2.1 dev rndis0
iptables -F
iptables -F -t nat
setprop net.dns1 78.42.43.62
setprop "net.gprs.http-proxy" ""
Funny part is: I can't ping a domain like google.de also no app is able to access the internet... BUT I can ping 173.194.35.151 (google.de ip afaik?!).
So I DO have a connection... somehow (tested with WiFi off and mobile data off) but no app has access and it can't resolve any domain names?!
78.42.43.62 is the correct ip for my dns provider!
Here are two screenshots proving what I'm talking about: Screen1 Screen2
So what can I do? Can some1 help me out here?
EDIT: I just wanted to point out that normal tethering IS WORKING, I do have a stable connection to my phone (even when transfering data), drivers are working!
Read the following post.. maybe it'll help you
Reverse Tethering
Hello.
I am using n7000 like media device, music, games, video. SIM card is not installed. Most of the time I am share internet from my iPhone by Bluetooth PAN.
As I understood starting from Jelly Bean google replaced BlueZ Bluetooth stack by BlueDroid from Broadcom.
Problem is that Bluetooth PAN doesn't work on any JB rom ( stock custom or AOSP) that is why I am stack with ICS roms.
I tried to troubleshoot this issue, but unsuccessful.
By default n7000 receives ipv6 IP address from iPhone.
Dhcpcd bt-pan
makes possible to receive ipv4 address. So it possible to ping 8.8.8.8.
getprop net.dns1
Provides DNS of priveously connected WIFI network.
Setprop net.dns1 8.8.8.8
resets DNS settings, but name resolving still doesn't work.
QUESTIONS:
How to push OS to renew DNS settings?
How to rollback Bluetooth stack to BlueZ on JB and KIT-kat ROMs?
Ps
I am apologize for my bad English.
Sent from my iPhone using Tapatalk
Ok.
After some additional troubleshooting i found that inside android exist several DNS settings per interface.
Also it seams that DHCP configured correctly only for wi-fi (wlan0) interface.
For bluetooth PAN (reverse tether) Android creates bt-pan interface and can't assign DNS settings correctly.
Did you manage to solve this? I am stuck at the same situation you describe (with another device, KFHD7).
jmolinuevo said:
Did you manage to solve this? I am stuck at the same situation you describe (with another device, KFHD7).
Click to expand...
Click to collapse
Root cause is that BT-PAN dont works correctly.
1 - bt-pan interface cant recive IP address from other device
2 - DNS settings is not updated after connection to BT PAN. Android device use DNS settings from previously connected Wi-Fi network/
workaround.
You have to connect to the Wi-Fi network (any). Then you have to open Wi-Fi settings and change it to STATIC.
Inside STATIC settings you have to set up manual DNS 8.8.8.8.
then you have to connect to BT PAN
and type in Mobile Terminal
1 - su
2 - dhcpcd bt-pan
Where to start, ok i have a note 5 tmob with stock rom rooted and posiden kernel and latest firmware. I have been tweaking the system for securty. Vpn af+wall adaway ect...
I also use a wireless sniffer called wicap 2 for keeping tabs on my internet.
So to my point or maybe problem. I was sitting with my daughter showing her some security issues to watch out for namely the difference between http and https. So while i showed her what happens if i log in to a site without https and my sniffer running i caught my fake log in and showed her. Then commenced to have her do that to on her phone.
Thats when the problem popped up. I did not catch her traffic.
I looked into my firewall and iptables. I noticed my wlan did not seem right
"wlan0 Link encap:Ethernet HWaddr EC:1F:72:EF:BE:21
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask: 255.255.255.0"
My log on my sniffer says my wlan0 address is 192.168.0.5/255.255.255.0 aswell.
Now my router is ip address 192.168.0.1 and my phone is the one that ends with the "5". Shouldn't my iptables look at my router ip and the go up. Instead of starting at "5" from my phone ip and missing the first 3 ip addresses while sniffing.
Now if this is not right how do i change this. Thanks in advance and i hope i have put enough info.
I do not know the program but sniffing works in one of two ways on your phone it can set up a vpn and see everything but for another phone the network card needs to be set into promiscuous mode to see packets not designated for you this means the proper network card. So it would seem that you are sniffing only your own network packets. And DHCP is not affected at all the numbers do go up but by sniffing you are seeing all network traffic.