Android :: Obtain MAC Address Of WiFi Network Interface?
Apr 8, 2010
It seems the java.net.NetworkInterface implementation of android does not have a byte[] getHardwareAddress() method http://developer.android.com/reference/java/net/NetworkInterface.html
I've found several forums of people trying to do this with no definitive answer, I need to get a somewhat cross-device UUID, so I can't rely on phone numbers or in ANDROID_ID (which can be overwritten and which I think depends on the user having a google account http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID
In linux you can use ifconfig or read from /proc/net/arp and you can easily get the Hardware address.
Is there a file in android that I can read?
There has to be a way to get this address since it's shown in the "Settings > About Phone > Status" of the phone.
View 3 Replies
Jul 18, 2010
I've had wifi in my house for years. As I type these devices are connected: ps3, desktop, laptop, wife's iphone. Everything works fine. I walked in the house with my Captivate and it can't obtain an IP address. The password is right. It gets to "Obtaining IP address" but then it says "Unsuccessful." I have never ever had a device issue connecting to my wifi. Numerous family/friend phones have connected without a glitch. Any ideas?
View 4 Replies
View Related
Sep 28, 2013
I have a S4 (SGH-I337M) with Android 4.2.2 installed on it, Not Rooted, Not unlock. My problem is with the WIFI and Network mobile serviec (GMS, 4G).
1. when i turn the wifi on, it gives me fail to obtain IP, and at the same the mobile service detected my Mobile Network (Rogers) for moment then it turns to No service for few moment to come back to Rogers an other time and so on( like infinity loop between Service detected and No service).
2. usually when i turn off the WIFI, the phone goes to look for 4G network but this doesn't happen now, and still Mobile Service between detected and Not.
3. What has been said until now is with SIM card On. and i tried to take it out the phone and turn the phone on, and the same problem is still with Mobile Network service but now the infinity look (as I like to call it) is between No service and Insert Sim card, at the same time can't access to the WIFI (Fail to obtain IP).
i have tried several thing to solve problem : like changing the SIM card, Reset phone to factory setting, turn it off for while and open it, but the problem still excite.
it seems that it is software problem but i don't know which process responsible of Network Service setting (WIFI, 4G, GSM) so i can stop it and lunch it again.
View 10 Replies
View Related
Mar 6, 2009
I have been looking at the ConnectivityManager class documented at http://developer.android.com/reference/android/net/ConnectivityManage... .
I would like to know if an Android application can open a network connection (socket) on a specified network interface [on a device supporting multiple network interface types WiFi, Cellular, WiMax etc] ? I am looking for the capability for an application to open a socket on a given type of network for example over WiFi network or over 3G Cellular Data network.
If this is possible in Android, how would I code this requirement within the API Framework ? The ConnectivityManager enables an application to learn about available network connections and currently categorises them as either TYPE_WIFI or TYPE_MOBILE.
There is a member function in the ConnectivityManager class called requestRouteToHost(int,int) [url] which "Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful." Sounds like this would install an IP routing table entry to reach a given host via a specified network interface type (WiFi or Mobile). After calling this would it be sufficient for an application to open a socket and connect to the desired destination address ?
Or perhaps the application needs to bind() a socket to a local address of a network interface of the desired type (WiFi or Mobile) Or by setting a socket-level socket option of SO_DONTROUTE ?
View 2 Replies
View Related
Jun 2, 2010
does anybody know how to pro grammatically obtain the email address configured on an android phone? that is the one which was used to activate the phone?
View 2 Replies
View Related
Sep 26, 2010
Just got my wildfire, running android 2.1 and cannot obtain an IP address from my TP Link TD W8920G router. log in the password etc and it just keeps getting stuck in a loop saying 'obtaining IP address', then unsuccessful.
I've tried manually adding the phone's MAC address to the router configure, and have assigned an IP address to the phone, following advice on other forums. I've upgraded the router's firmware, and I've rebooted the router. I've attempted to 'use static IP' but truth be told i don't really know what that means.
View 2 Replies
View Related
Oct 15, 2010
I'm trying to obtain my location using android 2.1 through "Provider_Network" but the problem is it uses both cell towers and Wifi Access Point. i only want to obtain my location through Wifi Access point and not through cell towers? any idea how to do it?
View 3 Replies
View Related
Apr 20, 2010
I'm hearing that IPv6 is supported by android, at least over the wifi interface, but I cannot do anything with IPv6 through the SDK at all. I am running Android 2.1 on an N1. I can see that at the OS level, the wifi interface has a link local inet6 address: ufo:~ newton$ adb shell $ cat /proc/net/if_inet6 0000000000000 0000000000000000001 01 80 10 80 lo fe80000000000000022376fffe8d1e63 0c 40 20 80 eth0 although ifconfig does not show it: $ ifconfig eth0 eth0: ip 192.168.1.2 mask 255.255.255.0 flags [up broadcast running multicast] If in Java I call getInetAddresses on a java.net.NetworkInterface, I only get the inet4 address. As I'd expect from the above, I cannot connect via any Java APIs to another link local IPv6 host on the same wifi lan Depending on my approach I get "socket level is invalid", a bad socket options error, host unreachable, or timeouts. Has anyone seen this work or have any insight? You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@google groups. com To unsubscribe from this group, send email to android-developers + unsubscribe @googlegroups.com For more options, visit this group at http://groups. google.com / group /android-developers?hl=en
View 2 Replies
View Related
Aug 16, 2010
How can I find the IP address of the an HTC incredible connected to Verizon's network? My other question - do I have to make any changes to my App to run it on a cellular network? Till now the App was running on a Nexus One connected to a local Wi-Fi network.
View 2 Replies
View Related
Oct 4, 2010
I love my aria, i got it 9/29/10, for free from best buy because my contract expired... but ive already used 20MB and i only bought a 200MB plan... i might go to 2 gigs, but for an alternate, since my billing cycle ends the 28th of every month... if i disable application syncing, and mobile network from the hold menu... can i connect to my home wifi network, and go on the internet from there without that using any of my data plan?
View 5 Replies
View Related
Apr 16, 2013
I need to change the network address of android tethering mode. The default network is 192.168.43.x/24, i need to set it at 192.168.16.x/24, is it possible?
otherwise how can i create a bridge or something else beetwen 2 different network interfaces?
Because i've a scale connected to my android phone (192.168.43.x), the phone is connected to a VPN (192.168.16.x) and from a PC i must be able to "talk" to the scale.
View 1 Replies
View Related
Oct 19, 2010
I have an android application using LocationManager get the cell network location and not the Wifi location? If I have turned off the Wifi antenna and do the following:LocationManager lm = (LocationManager) paramContext.getSystemService(Context.LOCATION_SERVICE);I am always returned the Wifi location and not the cell network location. I want it to return the cell location since I have moved fromthe Wifi location. I tried using a LocationListener but that doesn't seem to help.
View 1 Replies
View Related
Mar 31, 2010
I cant connect to my wireless network.I cant find the settings to put the following details IP : 1.2.3.4 ( I can put)
View 9 Replies
View Related
Nov 20, 2010
How do I find the WiFi and Bluetooth MAC address on my Android phone?
View 1 Replies
View Related
Jul 10, 2012
I had to factory reset my router and now when i try to connect my phone to the wifi all i get is "Obtaining IP address".
View 9 Replies
View Related
May 16, 2010
wifi was fine at first but now when i turn wifi back on it says remembered secured with wps/wpa2 psk
obtaining ip address but then after a few mins says unsucessful this is with the phone next to my router!
also under settings - wifi settings i have no advanced tab to set my router time out? where is it?
View 10 Replies
View Related
Oct 28, 2012
I do have a Ace 2 (I8160) but I can't get the mobile on the Wifi and he keeps saying: trying to get the IP-adress
View 9 Replies
View Related
Feb 18, 2014
I'm using ROM v3.1 on this thread : [URL] ..... And I don't know how to change Mac address of the WiFi connection.
There are a lot of app that did this but they ate not working on my ROM.
My phone is a ZTE V987.
I want to change the Mac address because it seems that my Mac address is blacklisted on the hotstop that I want to use.
View 2 Replies
View Related
Mar 21, 2010
I odin JC4 in galaxy, but I use wifi. That didn't connection WiFi. Because, it cannot be IP address.
View 5 Replies
View Related
Jul 9, 2010
After I reboot my Desire,it stay in "obtaining IP address from xxxxx" for a very long time,and will never finish this work. Why? Here is the Wifi software version and screen shot when it working.
View 7 Replies
View Related
Feb 28, 2010
When I try to connect my Eris to my wifi network, it always says Unsuccessful when trying to obtain an ip address. But if I enable to to use a static ip, it connects fine. Its annoying for me though, because if I'm out and want to connect to a different wifi, I have to disable the static ip. I'd like to get it so I don't have to use a static ip address at my house. Any ideas?
Does anyone know what ip address it tries to obtain when static isn't on? The two computers on my network are using .100 and .104. I figured that my phone would pick one not in use, but maybe it's set on trying to get one of those?
I've tried resetting my router...
View 8 Replies
View Related
Jun 23, 2010
Well i have bought 2 month ago new, sim free Legend. After that i had like 2 firmware updates,and well after the second one i cant get wifi working. Its like "unable to start wifi" and after that i cant switch this process off, it shows "unable to turn wifi off". So to get rid of this i need to restart phone. So now i cant use wifi. I cant even turn off wifi notification, i don't see MAC address etc. Are there ways to fix that?
View 2 Replies
View Related
Jun 6, 2013
solve the issue on the android ICS Wifi Mac address , here are the problems
1) NVRAM warning Err 0x10
2) Wifi always disconnect after able to obtain IP and browse internet a few seconds
3) Noticed that the MAC address last 6 digits are always changing, like 00:08:22:XX:XX:XX after I enable/disable the wifi
4) IPLINK SHOW ETH0 -- error: Can't find device 'eth0' , but WLAN0 is present
5) NetCfg command shows only Lo, wlan0, tunl0,sit0,ip6tnl0,ccmni0,ccmni1,ccmni2. but the Eth0 is not present?
Those problems originally found at the original rom. I have downloaded another similar rom but still not okay.
I downloaded the MIUI rom but only updates the system.img, recovery.img, boot.img. other image files were the same. The WIFI errors are still there.
View 1 Replies
View Related
Oct 23, 2013
my IPv4 is unavailable when i connect to wifi network.but i can connect to the internet via mobile data.BUT, when i restart my phone with wifi turned on and a wifi network which it can connect, IPv4 will be detected, but my mobile data will suffer because all of my APN's will disappear, but when i restart my phone w/ Wifi off, APN's will be restored.
my phone is Cherry Mobile Cosmos X a quad core MT6589
View 1 Replies
View Related
Nov 11, 2009
Using a Linksys wireless router with a WEP encryption at home. Every time I try to connect my phone says "Obtaining IP Address" and then after a short time it fails.
-Yes, my phone recognizes the router.
-Yes, I have the correct key.
-Yes, I have reset my router and modem, no change.
-Yes, I have restarted my phone.
-Yes, my phone connects just fine to unsecured wireless routers.
-No, I cannot find another thread that has solved this issue.
View 15 Replies
View Related
Aug 25, 2009
I have a HTC Hero - T-mobile. Ok the problem, is i used to be able to connect to my wifi router no problem, its a netgear. "remembered, secured with WPA-Personal" and for some reason, it just wont get passed Obtaining address... So its connecting? but cant establish an IP?
View 8 Replies
View Related
Jan 5, 2010
I'm trying to connect my phone to my network so I can use wifi. I found my network and entered the correct password and it will say its obtaining an ip address but then after a few seconds it will say unsuccessful what am I doing wrong?
View 7 Replies
View Related
Aug 19, 2010
I installed wireless tether to test it out. Worked great. Now I am stuck on the aforementioned obtaining address. I've powered cycled plenty, removed battery, uninstalled wifi tether. Really don't want to a factory reset.
View 5 Replies
View Related
Apr 2, 2014
I have the MotoX on AT&T. My phone's address book ("People") won't sync with AT&T's online address book over WiFi. When I turn my phone's WiFi connection off, I can sync my address book. When I turn my phone's WiFi connection on, I can't sync. I tried this several times.
I can sync over the mobile data connection, but not over WiFi?
View 1 Replies
View Related
Jun 4, 2013
I got myself a Chinese clone of a galaxy S3 (alps 7102), it has Android's Jelly Bean 4.1.1 operating system on it.
It keeps on changing its wi-fi mac address on reboot which I guess I could put up with, I have seen other posts with similar problems on varying phones and have tried to fix it, as per the methods described for them, but I cant seem to get a fix that works, for my phone I am not very familiar with the android operating system but have some experience with linux.
The phone doesn't seem to have a bootloader as I have tried to boot the phones bootloader with the adb command "adb reboot- bootloader" from my pc but it just boots as usual, I have done a factory reset to the phone as per the instructions from the ebayer that I bought the phone from but that didn't fix it (as you might have guessed) but it did reset the phones serial number to 0123456789ABCDEF which I have no idea why that happened but has added to the issues that I would like to be fixed.
View 1 Replies
View Related