MAC Changes? - Android Q&A, Help & Troubleshooting

I'm trying to get my Moto Z2 connected by IPSec to my LAN. Part of that is I want to have it always get a known IP address.
Well the mechanism that most DHCP servers use is setting the MAC to assign a known IP. But checking the logs I find that the Z2 changes MAC every time I establish a new VPN connexion! WTH?
I mean, normally I would see this as a benefit, but I need to be able to pin down what is what so I can give it its rightful IP address, so I can find it later.
When I check interfaces with ipconfig, there are about a dozen of them, and the one getting the VPN IP is tun0.
Nogat 7.1.1, rooted. Anyone know what's going on here?

No one's getting random MACs...

Related

Android cannot accept DHCP offers above 192.168.0.11?

I've been having issues for a month or two and it seems as though I've finally discovered that usually once they start, the highest assigned IP address has always been 192.168.0.11..
Even when I go into the terminal and change my mac address,I still can't get a different IP. Doing the same on my pc and the router is passing out offers in the 20's... Its the story of my life, any fixes??
PS, is it possible to attain closed networks password key with an android?
Is any one out there able to verify if this is or isn't true?
It certainly seems to be the case on hero with both a 2.2 and a 1.5 rom, with what ever router is attached to some open wireless network that I can't afford at the moment.
Cloned2 said:
I've been having issues for a month or two and it seems as though I've finally discovered that usually once they start, the highest assigned IP address has always been 192.168.0.11..
Even when I go into the terminal and change my mac address,I still can't get a different IP. Doing the same on my pc and the router is passing out offers in the 20's... Its the story of my life, any fixes??
PS, is it possible to attain closed networks password key with an android?
Click to expand...
Click to collapse
If you look carefully at the IP address 192.168.0.11, it's a wrong IP, check here for those router default IP addresses.

Static IP Address toggle doesn't work in android 2.2.

I have a HTC Thunderbolt that doesn't seem to recognize that the toggle for the static IP address is on. I have tried to reboot it and not sure what else to do. I need to be able to set a static IP for use with TRENDnet TEW-637AP wireless that doesn't have the ability to assign IP addresses. It continually says obtaining IP address from Network SSID. It will connect to wireless that can assign IP addresses regardless of the switch setting. Like I said, it doesn't seem to see it.
Thanks,
AC
assuming youre connecting with the wireless connect in the phone for wifi (the built in one), you can just set things manually.
Using a computer on the same network as the router you want to connect to, do this:
go to the command line in windows/linux/osx:
type ipconfig /all (if you're on windows)
ifconfig -a (if you're on linux/osx)
make note of the subnet mask (probably 255.255.255.0) and default gateway/network id (probably 192.168.1.1 but that could vary).
Then on your phone, use the same subnet and gateway and then find an open ip address for your phone to use (probably something between 192.168.1.100 and 192.168.1.150, but that also could vary depending on what your default gateway is. Anyways when you find one, say something like 192.168.1.139, enter that for the ip address and connect. Assuming all went well and you figured things out, you should be connected.
Ok. I will give that a try when I get a chance. Would have liked to done so today but very busy and it doesn't look like work is going to slow down for the next two days. Thanks for the quick response.
Sent from my ADR6400L using XDA App
I finally had time to sit down and look at this again today. I was in hopes that I had missed something on the default gateway. I don't use one on my network as there is no internet access. Thought maybe it was I tried using x.x.x.1 as the gateway hoping that it would make a difference but it didn't seem to help. Thanks for the suggestions. I have been looking on the web and it would appear that I am the only one having an issue of this type. Thanks again.

See PC IP address on my phone

Is anyone aware of an app that I can install on my Nexus One, that when used in conjunction with a server app on a pc, will allow me to see the IP address's of my PC's on my phone. I realize this will most likely only work when my phone is on the same network.
The reason I ask is that I have an old laptop running Boxee hooked up to an old CRT TV(can't afford a newer LCD TV). This works fine for watching video's, but the image quality is such that trying to do anything else such as web browsing(Hulu) or system updates is damn near impossible. So if I have to do anything other than Boxee, I'm just going to VNC into the system. The problem is that the router does not allow for setting up static IP's, and it's not my router so I can't install DD-WRT on it, and it also has a habit of changing the client's IP address in the middle of a session. So if I could install a small server app on the PC that would broadcast it's current IP address, I could then easily pull it up on my phone.
Network Mapper by Ian Hawkins does what u want. And it doesnt need a server app.
Another option is to define a static IP without even involving the router. Just set the IP, gateway, netmask, and DNS servers on your boxee laptop manually, and it will continue to work even without the routers consent! The router isn't likely to be smart enough to actually map the addresses it handed out to the traffic it is routing, so it will just blindly pass the traffic.
Chances are, the router is set up to hand out addresses within a certain region - 192.168.1.100 to 192.168.1.150, or something like that. Most of the time, they will just forward all traffic that is in the entire 192.168.1.x range (or at least some reasonable subnet) What you can do is pick an address that won't be handed out by DHCP (192.168.1.2 or 192.168.1.250 or something), and set that manually on boxee. You'll be able to tell pretty quickly if it works! On the off-chance that the router DOES care, you can also try picking an address that is within the range of addresses being handed out, but on the upper end. Realistically, those almost never get used!
Static IP support on the router is nice because you don't have to do any configuration on the client, but if you're willing to put that configuration in (one time), you can get the same results. Worth trying out! That's what we all used to do before routers got fancy (and hacked) to include those cool features.
dyndns updater keeps it in sync and you can always log in online and see your ip address if your router has randomized it
Pc monitor gives you pretty much everything about the pc, including current external ip
Sent from my HTC Glacier using Tapatalk
Se7enLC said:
Another option is to define a static IP without even involving the router. Just set the IP, gateway, netmask, and DNS servers on your boxee laptop manually, and it will continue to work even without the routers consent! The router isn't likely to be smart enough to actually map the addresses it handed out to the traffic it is routing, so it will just blindly pass the traffic.
Chances are, the router is set up to hand out addresses within a certain region - 192.168.1.100 to 192.168.1.150, or something like that. Most of the time, they will just forward all traffic that is in the entire 192.168.1.x range (or at least some reasonable subnet) What you can do is pick an address that won't be handed out by DHCP (192.168.1.2 or 192.168.1.250 or something), and set that manually on boxee. You'll be able to tell pretty quickly if it works! On the off-chance that the router DOES care, you can also try picking an address that is within the range of addresses being handed out, but on the upper end. Realistically, those almost never get used!
Static IP support on the router is nice because you don't have to do any configuration on the client, but if you're willing to put that configuration in (one time), you can get the same results. Worth trying out! That's what we all used to do before routers got fancy (and hacked) to include those cool features.
Click to expand...
Click to collapse
Tried all that recently and it never worked properly.
zachary.hilliker said:
Pc monitor gives you pretty much everything about the pc, including current external ip
Sent from my HTC Glacier using Tapatalk
Click to expand...
Click to collapse
This is perfect, thanks.
I only skimmed through the topic but try fing. It might help.
Sent from my MB860 using xda premium

How do I kill mac address randomization?

Fairly generic device running a fairly stock Android 6.0 (it is rooted, though).
Every time it connects to a wireless router, it reports a new mac address (changing the last six digits).
The problem: This device never leaves its home base (it will never connect to an outside router), and I need to forward certain WAN ports from the router to this device. Of course, the router (a brand new Huawei) can only forward by mac address, not by IP address. so each new connection basically requires logging into the router and manually updating its configuration (a time consuming and error-prone process). I could live with a different mac address on each boot (since the device is seldom rebooted), but one with each wifi connection is just too much.
I understand the benefits of random mac addresses for devices that connect to a number of access points, but the implementation (with no user control) feels very Apple like ("We know what's best for you. You have to do it our way, and don't get any choice in the matter").
Is there some way of getting a static mac address when I want one (which for this device, is always)?

Randomized MAC address blocks wifi access

Samsung Galaxy S10e, Android 10 stock.
I am currently a patient at an acute care facility and I use the public Wi-Fi here. Recently, changes were made to the Wi-Fi here, I understand that a new router was installed. Since then, I have been trying to access the Wi-Fi with the correct password, but I get a message that sign in is required and when I click it, I am forwarded to a page that does not load. If I select the menu option to use network as is, I seem to be connected but have no access.
In the past, when accessing this Wi-Fi, I was forwarded to a web page where I had to click a button, and then got access. That page has been gone for quite some time now and the Wi-Fi connected without any issues
Others accessing the Wi-Fi do not seem to have this issue. I tried numerous things to fix this issue, such as deleting the Wi-Fi connection and re-enabling it and resetting the network connection. The only thing that I found that resolves this issue is turning off the randomization of the MAC address and setting it to use the phone Mac address.
For privacy reasons, I would prefer to use the randomized MAC address. If for some reason my phone is being blocked on this network, which is the only thing I can think of, in my limited knowledge of how this works, it would seem my phone Mac address would it be blocked but not a randomized MAC address, because it changes.
My old Galaxy S4 running CyanogenMod Android 6 connects to the Wi-Fi fine, but I don't believe the MAC address is randomized on Android 6, if this is the reason, though this seems unlikely to me as every newer phone would have an issue, since they randomize the MAC address by default
Can anyone supply me any info on this?
@rsngfrce
If the randomized MAC address ( e.g. 32:8c:27:26:72:34 ) doesn't contain the original OEM code in its first 6 hex-numbers you might face a lot of authentication issue.
jwoegerbauer said:
@rsngfrce
If the randomized MAC address ( e.g. 32:8c:27:26:72:34 ) doesn't contain the original OEM code in its first 6 hex-numbers you might face a lot of authentication issue.
Click to expand...
Click to collapse
Thanks for your reply. The phone is doing the randomizing as a function of Android and I would have to assume that it would maintain the original OEM code in its first six hex-numbers if this is required (and I have read about that issue). I never had this issue until the new router was installed and I am unaware of anyone else having an issue.

Categories

Resources