Question USB tethering changing IP address - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

Each time USB tethering is activated on POCO F3, its USB network adapter IP address and the provided DHCP address pool changes since the last time. Hence the connected PC gets a diffrent IP address each time. The phone's IP address (seen as gateway address from PC) is different too each time. As I read somewhere this is a new "great feature" of the Android 11.
Is there any way to prevent this and to keep the same phone's IP address and the provided DHCP address pool for every USB tethering session?

Simple answer, no. This security feature is there since Android Q, it's annoying cause you have to check the IP each time, but it provides a great level of security.
Unless you are willing to downgrade to Pie (which your phone doesn't even allow), there's no easy workaround for you here.

Related

mac address

Does anyone know how I can find out the mac address of my xda IIs ? I have a dreytek wireless router at home which uses a mac based access control list. I've tried the addresses that appear in wireless LAN manager ( BSSID and MAC ) but no joy. The only way I can connect is to switch off the access list feature completely
jeff
Hi Jeff,
Switch off the Access control, and let the XDA IIs join the wireless network. Then go into Diagnostic Tools --> View DHCP assigned addresses, and you will get a list of MAC addresses, IP addresses and hosts on the network. Match your phone's name to the MAC address.
Then you can turn access control on again and input the phone's mac address into the "allowed" list.
Thanks for the reply. I've kind of done that as you can see from the DHCP table below
DHCP server: Running
Index IP Address MAC Address Leased Time HOST ID
1 192.168.1.1 00-50-7F-23-97-CC ROUTER IP
2 192.168.1.10 00-00-00-00-00-00 BAD IP
3 192.168.1.11 00-0D-61-4E-A7-F7 0:00:04.600 hubbo
4 192.168.1.12 00-09-2D-0E-49-61 9:24:34.170
(not sure about that BADIP line ! )
I would say my MAC is 00-09-2D-0E-49-61 but it's still not working.... odd.
Is there no way that you can tell the MAC address from the phone without connecting to a network.
Here is a freeware that will allow you to find your MAC with no connection. I used it on my PDA2K.
http://www.freewareppc.com/communication/vxipconfig.shtml
Install on your device. Just turn the wifi on and run the program and it will give you the MAC and additional device info. Don't have the PPC connected to the USB or it will identify that device.
Sorted thanks, whilst in PC World I scanned for a Wireless network, and found three, hehe! Once connected used that utility to get my MAC.
Many thanks!
wifi and drayteck router
hi i see u have a draytech router how did u manage to get streaming video? i have been trying now for hours.I can get the video on my laptop without any problems but my m2000?????
i think the problem lies within the vpn settings as when i try to open http://house:8080 i get the message vpn connection required.
any help would be greatly recived (i have the vigor 2600g)
thanks in advance
delboy

[Q] How to assign static wifi IP address?

just updated my SW3 to Android 5.1.1
my office wifi router required every client to set manual/static IP address.
any suggestion how to do this on SW3?
jalmago said:
just updated my SW3 to Android 5.1.1
my office wifi router required every client to set manual/static IP address.
any suggestion how to do this on SW3?
Click to expand...
Click to collapse
I am pretty sure you can do this in the advanced section of the wifi settings on the watch.
hi i can't find any option to set a static ip. Not on the watch and not on the dialog on the phone where i have to enter the password.
 @Joachim Winter have you tried it, cause i dont know how i should set it there?
Thanks
Something like this might work via adb assuming it's just like regular Android?
http://stackoverflow.com/questions/...tic-ip-address-using-android-debug-bridge-adb
Can't find too much info on changing WiFi configuration with adb
Assigning a static IP address would be an issue on thew watch especially if you want to use the WiFi connectivity option on other networks.
But reserving an address on your router would be a better option, meaning DHCP would always assign the same IP address to your watches MAC address. It's usually under DHCP and Address Reservation in your router settings.

MAC Changes?

I'm trying to get my 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...

Android 9 and tethering default gateway

Hi everyone,
I noticed that since Android Pie, the default gateway for tethering (which is the phone's IP) changes every time I enable the feature.
On Oreo it was always 192.168.43.1
In most cases this shouldn't be a problem, as the connected devices gets automaticaly the default gateway.
But if for some reason you need to set up a device with static IP, you have to manually change the default gateway every time it connects to the phone (otherwise the device may not have access to the internet)
So, does anyone know a way to freeze this address ? (without root...)
Mellow971 said:
Hi everyone,
I noticed that since Android Pie, the default gateway for tethering (which is the phone's IP) changes every time I enable the feature.
On Oreo it was always 192.168.43.1
In most cases this shouldn't be a problem, as the connected devices gets automaticaly the default gateway.
But if for some reason you need to set up a device with static IP, you have to manually change the default gateway every time it connects to the phone (otherwise the device may not have access to the internet)
So, does anyone know a way to freeze this address ? (without root...)
Click to expand...
Click to collapse
Its ip/mac spoofing, on by default. Dont worry, its more secure this way, wont effect performance
boe323 said:
Its ip/mac spoofing, on by default. Dont worry, its more secure this way, wont effect performance
Click to expand...
Click to collapse
Thanks for your reply, I understand that it's more secure and I don't worry about performances.
But I would like to set one device with static IP and gateway, so that I can switch to another network without having to reconfigure.
So is there a way to disable this ? That is the question...
@Mellow971
Try what's suggested here:
https://android.stackexchange.com/q...nently-change-my-hotspot-tethering-ip-address
The latest Android developments, starting with 8 (Oreo) are rather sad and obstructive (lately you can't even find the DHCP allocated IP address in the WiFi connection details section ), apparently a result of younger developers showing off with stupid features, not really understanding how the underlying communication & protocols are really functioning.
What @boe323 was explaining is utterly false, because there is no way you could implement a proper ip/mac spoofing protection.
- if the WiFi network is open, it's really easy for a malevolent actor to identify the GW and MAC address and clone it, it only requires a DHCP bcast/query packet.
- in a protected WiFi network (WPA/WPA2), the malevolent actor has no way to perform an ip/mac spoofing if it doesn't successfully authenticate in the protected network.
- the actor can perform a MiM attack and spoof the protected WiFi network ESSID, but for that any DHCP ip/mac spoofing protection is again useless.
I'm also having an issue with this useless IP/MAC spoofing protection implemented in the latest Android, because I have a router configured to connect through a secondary WiFi card to my phone as an Internet fail-over scenario (in case my main Internet connection fails). I configured it with static addresses - both host and GW (192.168.43.1), and doing SNAT. I had to change it to DHCP and using MASQUERADING, just a dumb overcomplication caused by some young developers that have no clue what they're doing.
helloyello said:
@Mellow971
Try what's suggested here:
https://android.stackexchange.com/q...nently-change-my-hotspot-tethering-ip-address
Click to expand...
Click to collapse
Sadly I don't have root access
But I managed to live with that (and many other stupid features...)

I need to configure my eth0 in a minimal network without DNS or DHCP - how?

What does it take to configure an ethernet eth0 device on my S9 (Andorid 10)? Under what conditions does it recognize a network interface to be connected and worthy to configure permanently? Does it test for certain internet hosts? Does it test if DNS requests being answered?
I have an usb ethernet adapter which is recognized by my S9. Now I want to give the ethernet interface a static IP address in order to be able to receive UDP packages from an other ethernet device. These two devices are the only ones on the network. I will use it out in the wild where there is no full featured network or other infrastructure, and the devices would just communicate using their hard coded IP addresses.
However the S9 refuses to accept my manual configuration and does not bring the interface up (after a brief (2s?) periode of trying). In the past, with lineageOS and an S5 i was able to install a special file in the system partition preconfiguring the device. i didnt root the S9, so this option is not available.
What are the prerequisits for android to accept the ethernet configuration and setting the interface to UP? How can I fake those prerequisits to be able to configure my eth0 and receive packages on my IP address?
Update: switching the phone into airplane mode seemed to have made it "try harder" to bring eth0 up. however, it was not up continously but went down for a second every now and then. I am still looking for a robust solution.

Categories

Resources