Bluetooth PAN DNS Hostname to pull from DHCP rather than the android creating its own - Android Q&A, Help & Troubleshooting

Hey guys,
So I have a bluetooth pan on a raspberry pi which gives an ip and Internet connection to an android, in this case the S6 edge. I am given an ip address, however I can't communicate with other devices on the network. I do receive Internet though. It seems the android is assigning itself a dns hostname, which separates itself from the rest of the network. I could be wrong, but when laptops connect to the same pan network, they are given the dhcp information from the router and they can communicate over the network with the ip's being given to them from the bluetooth access point.
The laptops have a hostname of TP-link_D5DE and the android has android_9xxxxxx
Can the android adopt dhcp hostname info via Bluetooth pan? Can I change this name? Is it possible without root if so?
I understand there was somewhat of an issue with dhcp "hooks" back in the day where the bluetooth controller couldn't retrieve this information but I read that on a forum which was a few years old and also read it was fixed on newer versions of android.
I plan on have an app with a webview client call on this IP resource as you would in a web browser. Is it possible to have this app issue a dns name?
Thanks!

Related

DNS Problems After Bell 2.3.4 Update

So when I was using 2.2.2 my WIFI connection was working flawlessly with DHCP setting my wireless settings.
I flashed 2.3.4 using NFHimself's Gobstopper without any errors, did a factory reset afterwards and I get an internet connection over mobile with no problems, however on my home WIFI network w/ DHCP (on which 2.2.2 worked fine), it cannot resolve addresses past my router (can browse to the router config fine). Now if I set a static IP and the DNS servers manually, it works over WIFI, however when the WIFI radio turns back on from sleeping it gets stuck at obtaining an IP address.
So I tried leaving it with DHCP giving me an IP address, and then using Set DNS to use google's DNS servers instead of my router's IP, and it seems to work in all situations, however it leaves me unable to browse my LAN (even when one dns domain is left as my local domain server).
I installed Network Monitor II to watch my wireless settings for the three setups:
For just using DHCP, the DNS servers are both set to my router's IP
For static settings, the DNS servers are whatever i set them however i cannot browse my LAN when one is left as my router's IP
For DHCP w/ a custom DNS, it is the same as using static settings
Not sure whether to think this is a problem with the update, or a problem with my router (however no settings were changed before or after the update on it). Anyone have any ideas?
Router: Linksys WRT54GL running DD-WRT
I read somewhere that having the "Filter WAN NAT Redirection" setting enabled in DD-WRT causes this sort of behavior on some mobiles, it is not enabled.
Only thing I could find that I thought it might be is Android Bug Issue 10315 (to which I cannot post a link as I lack sufficient posts... so far), but am still unsure
I should also note that I have two routers (both identical), but only one deals with the DHCP and DNS, the other is more just a wireless AP. Thus, all of my lan is on 192.168.1.*, including both routers ( x.x.x.1 and x.x.x.2 ). uDHCPd is my DNS server on my router, but I might try dnsmasq in the next couple days.
Jiraffe said:
So when I was using 2.2.2 my WIFI connection was working flawlessly with DHCP setting my wireless settings.
I flashed 2.3.4 using NFHimself's Gobstopper without any errors, did a factory reset afterwards and I get an internet connection over mobile with no problems, however on my home WIFI network w/ DHCP (on which 2.2.2 worked fine), it cannot resolve addresses past my router (can browse to the router config fine). Now if I set a static IP and the DNS servers manually, it works over WIFI, however when the WIFI radio turns back on from sleeping it gets stuck at obtaining an IP address.
So I tried leaving it with DHCP giving me an IP address, and then using Set DNS to use google's DNS servers instead of my router's IP, and it seems to work in all situations, however it leaves me unable to browse my LAN (even when one dns domain is left as my local domain server).
I installed Network Monitor II to watch my wireless settings for the three setups:
For just using DHCP, the DNS servers are both set to my router's IP
For static settings, the DNS servers are whatever i set them however i cannot browse my LAN when one is left as my router's IP
For DHCP w/ a custom DNS, it is the same as using static settings
Not sure whether to think this is a problem with the update, or a problem with my router (however no settings were changed before or after the update on it). Anyone have any ideas?
Router: Linksys WRT54GL running DD-WRT
I read somewhere that having the "Filter WAN NAT Redirection" setting enabled in DD-WRT causes this sort of behavior on some mobiles, it is not enabled.
Only thing I could find that I thought it might be is Android Bug Issue 10315 (to which I cannot post a link as I lack sufficient posts... so far), but am still unsure
I should also note that I have two routers (both identical), but only one deals with the DHCP and DNS, the other is more just a wireless AP. Thus, all of my lan is on 192.168.1.*, including both routers ( x.x.x.1 and x.x.x.2 ). uDHCPd is my DNS server on my router, but I might try dnsmasq in the next couple days.
Click to expand...
Click to collapse
I did flash NFHimself's ROM without any issues. My wireless LAN was working fine. Did not noticed any issue on my side. Try with another Wireless router without all the setup you've done. Pretty sure the issue is with your routers.
I don't understand why you are not able to reach you LAN with google's DNS configured...? Do you have some sort of DNS entry specific to your LAN configured into your router?
the problem seemed to solve itself when i switched my router's DNS server daemon from UDHCPD to dnsmasq.
And I couldn't reach my lan when i had both dns servers forced to google's servers as google's servers don't know how to route to addresses inside my lan. But that's not a bug, that is how it is supposed to work.
Good !
Sent from my MB860 using xda premium

S3 can connect to WIFI but no Internet

Hello everybody.
Since last saturday i'm testing a Galaxy S3.
I want to test if everything works properly before buying it.
I have some problems deling with the WIFI stuff.
I gave him a static IP (192.168.1.15), configured the gateway as the ip of my router (192.168.1.1),
the network class is 255.255.255.0 (network prefix = 24), the DNS points to the IP of the Router (192.168.1.1)
It connects without problems. form the S3 i can ping any device in my network and from other devices i can ping the S3.
I can connect to the configuration site of the router and from the page of connected devices i can see that the S3 is connected
with the correct ip and also the MAC adress is correct.
And for now everything is fine.
Problems raise up when i try to surf internet. The answer is always "Page not found"
If i open the browser and try to navigate to google] the answer is "Page not found". Same for any other site i try to connect with.
I cannot ping external adresses from the S3. Only the ones inside my LAN.
On the same LAN there are 3 laptops, 1 IPhone, 1 TV, NAS NETGEAR , home automation screen, all connected in WIFI.
All of them configured in the same way. (static ip, gateway=ip router, dns = ip router, network class 255.255.255.0),
And they all access internet without any problem.
The network is protected with WPA2/PSKey, encryption AES.
I tried to configure channel with WPA, WEP, without protection, but no changes.
The S3 connects to router but does not connect to internet,
I also tried to make it point to a public DNS 8.8.8.8. No WAY!
Works for other devices.
I tried to reset S3 to factory parameters, same thing i did for the router.
I reconfigured everything from scratch but no result.
I do not have any filtering based on IP or MAC adress on my Router.
I tried with DHCP, with reservation of IP adresses or without reservation. No change.
Other devices can access internet. S3 does not.
I have to say i'm quite desperate.
If you guys have some good ideas to solve or diagnostic the problem i would be grateful.
Cheers,
Fabio
I get that around my office as I walk around, I find that when I change AP in range my internet connection drops. I have to constantly disable/re-enable WiFi.
Even around my house, I have the handset to WiFi always on, yet when I wake up in the morning the internet connection is not working yet there is an IP. I couldn't be bothered to telnet to port 80 etc., but I hear that the Jellybean update will resolve this issue.
Same problem
nickzap said:
Hello everybody.
Since last saturday i'm testing a Galaxy S3.
I want to test if everything works properly before buying it.
I have some problems deling with the WIFI stuff.
I gave him a static IP (192.168.1.15), configured the gateway as the ip of my router (192.168.1.1),
the network class is 255.255.255.0 (network prefix = 24), the DNS points to the IP of the Router (192.168.1.1)
It connects without problems. form the S3 i can ping any device in my network and from other devices i can ping the S3.
I can connect to the configuration site of the router and from the page of connected devices i can see that the S3 is connected
with the correct ip and also the MAC adress is correct.
And for now everything is fine.
Problems raise up when i try to surf internet. The answer is always "Page not found"
If i open the browser and try to navigate to google] the answer is "Page not found". Same for any other site i try to connect with.
I cannot ping external adresses from the S3. Only the ones inside my LAN.
On the same LAN there are 3 laptops, 1 IPhone, 1 TV, NAS NETGEAR , home automation screen, all connected in WIFI.
All of them configured in the same way. (static ip, gateway=ip router, dns = ip router, network class 255.255.255.0),
And they all access internet without any problem.
The network is protected with WPA2/PSKey, encryption AES.
I tried to configure channel with WPA, WEP, without protection, but no changes.
The S3 connects to router but does not connect to internet,
I also tried to make it point to a public DNS 8.8.8.8. No WAY!
Works for other devices.
I tried to reset S3 to factory parameters, same thing i did for the router.
I reconfigured everything from scratch but no result.
I do not have any filtering based on IP or MAC adress on my Router.
I tried with DHCP, with reservation of IP adresses or without reservation. No change.
Other devices can access internet. S3 does not.
I have to say i'm quite desperate.
If you guys have some good ideas to solve or diagnostic the problem i would be grateful.
Cheers,
Fabio
Click to expand...
Click to collapse
I'm having the exact same problem, I'd really like to know if you were able to solve the problem.
Phoenix_Dean said:
I'm having the exact same problem, I'd really like to know if you were able to solve the problem.
Click to expand...
Click to collapse
Me too... Is anybody has solution for this issue?
Oh poor fellows ....try to add DNS manually according to your ISP...not add public DNS
Try forgetting the network and connecting again and make sure all the other devices are using different ip address
Sent from my GT-I9300 using xda app-developers app

[Q] Android unable to connect to my Wi-Fi network - Windows can

I am in university halls of residence. I have setup a Wi-Fi hotspot in my room using a generic router by connecting from the ethernet out port in the wall to a ethernet LAN port and disabling DHCP on the router.
This works perfectly for my Windows 7 laptop. It connects to the router and then to the uni internet without issues. However, although my Samsung Galaxy S3 (International i9300) can detect the network, if I just try to connect to the network as I would any other it gets stuck when obtaining an IP address. After messing around with it for a bit i found that I could get the phone to connect by going into the advanced settings and choosing "static" instead of "DCHP". I don't know what I was really meant to enter for IP Address, gateway, subnet, DNS 1 and DNS 2.
The router has the IP of 192.168.1.1 when i connect it directly to my laptop via ethernet so I tried that as the gateway, I set the IP address to something like 192.168.1.14 (So that it was similar but different), I set the subnet to 255.255.255.0 and the DNS servers I used google's (8.8.8.8 and 8.8.4.4). This got me connected to the router but there doesn't appear to be any internet connection.
I therefore thought that I had entered wrong information for the network (I was only guessing after all). Therefore I went into ipconfig in Windows and copied the default gateway and DNS servers and used a similar IP address (Last number different). I had the same issue.
Does anyone have any suggestions?
I only want Wi-Fi in my room for mobile.

[Q] CM11/OpenVPN Not Routing Connections Over VPN Correctly

I just noticed that my moto E (running CM11) is not correctly routing my traffic to my openvpn server. I noticed when I was looking at the current connections on my OpenWRT router that I could see the VPN's local IP address, and the remote connection:
IPV4 TCP 10.9.0.20:56657 157.166.xx.xx:80
Where 10.9.0.20 is my local VPN address, the other represents any remote address I connect to.
I could see all this in Luci's connection graphs, which means that OpenVPN is not sending my traffic over the tunnel at all, despite the reports from sites like ipleak.net and similar sites that tell me I have no leak . But if I can see the connections from my router, that means that when I connect over mobile data, my carrier can likely see all of my traffic. This is not what I want, I am having a hard time fixing it. Also, how is it even possible that my router is detecting the IP of my tun interface??
I tried two different OpenVPN frontends, tweaking the firewall on the phone (afwall+) and also playing around with the 'redirect-gateway' directives. I am not sure if this a DNS leak or total disobiedience on Android's part of my routing rules. The fact that I can see these connections from the router makes me think that the traffic is not even being encrypted before it's sent over the internet. My firewall rules are set so that every app is supposed to route over the VPN. These are my configurations:
Server Config:
mode server
tls-server
local x.x.x.x
port 35777
proto udp
dev tun0
ca /etc/openvpnca.crt
cert /etc/openvpn/randomcn.crt
key /etc/openvpn/randomcn.key
dh /etc/openvpn/dh.pem
topology p2p
server 10.8.0.0 255.255.255.0
;topology subnet
ifconfig-pool-persist ipp.txt
client-config-dir clients
;client-to-client
keepalive 7 80
tls-auth /etc/openvpn/ta.key 0
cipher AES-128-CBC
comp-lzo
max-clients 3
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
In my client directory, I have these settings. On my PC I do not have this IP leak problem despite the settings being the same:
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 10.8.0.1"
I have dnscrypt running with unbound on the server, serving the clients. This configuration works on my PC, but it seems no matter what I do I still can see the vpn local IP and all of my remote connections with Luci on openwrt.
I have tried using both OpenVPN connect, Openvpn for Android, and I am currently trying to use the ICS binary as well. Can anyone help me solve this problem? My goal is to tunnel all my phones traffic over the VPN and prevent IP or DNS leaks.

Changing Android i.p. address (Help)

My school recently blocked my i.p. address from trying too connect to the WiFi. Is thier any way to get back on or change my i.p.
My device is Lg Leon Android lollipop
Blocked not ip
They can not block IP address, because DHCP server give IP address to device, and you can always change your IP in WiFi settings. They block your MAC address. This is unique value on each WiFi device. So, you must change MAC address, but it is not possible for all device (my phone do not support).
Are you sure that they blocked you? May be DHCP server have not free IP addresses or Internet was disabled.
And... may be school enable MAC filtering and WiFi allows to connect only teacher's devices. So you must to know MAC address one of the teacher's devices. But this is another story with airmon and social engineering
If they are smart they will do what I did for my sons schools. And run a static ip on all approved devices and then make as stated above use Mac filtering. More and more schools are banning the use of personal devices and to be honest I agree with it.

Categories

Resources