Networking Issue with Multiple Android Devices at Home - Android Q&A, Help & Troubleshooting

I have several Android devices at the house. I am running pfSense as my router/firewall and I just migrated to new hardware. All of the affected devices were working with the same pfSense settings before the migration.
Here are my devices and details.
Nexus 7 2013 - Stock Android 6.0.1 - Rooted
Galaxy S5 - US Cellular - Stock Android 6.0.1
Galaxy S4 - Sprint - Stock Android 4.4.2
Galaxy S8 - Sprint - Stock Android 7.0
Nexus 5x - Stock Android 8.1
Google Pixel XL - Stock Android 8.0.0 build OPR3.170623.013 - Rooted
I have determined that the issue is all the android devices have the wrong MAC address in their ARP Table. They are listing the MAC address of the old router. I determined the ARP issue when I tried pinging the default gateway (pfSense) and I wasn't able to. I was able to ping other devices on the LAN successfully. I knew I didn’t have any firewall rules/acls in place on the pfSense box that would block/ignore pings on the LAN side. I googled how to access the ARP table on android device. After checking /proc/net/arp I saw that for the default gateway, the MAC address was incorrect. I can't get any of the devices to use the correct MAC address for the new router.
These are the things I have tried to fix the issue: (most of the work was done on the Nexus 7 and Pixel XL because they are rooted)
Rebooted all devices.
Turned Wi-Fi off and on.
I have reset network settings.
Forgot the Wi-Fi settings and reconnected.
Connected to a totally different SSID and connected back to the one with issues. (Hoped it would build a new ARP table with correct MAC Address)
Statically Assigned IP addresses.
Cleared cache from recovery.
Did an ADB Pull of /proc/net/arp to modify with correct MAC Address. I was not able to push to same place since its in the system partition. I pushed to SD Card instead, and tried to replace the file with FX explorer using root. (This was attempted on Nexus 7 only. I think it had issued mounting system as R/W.. it was weird.)
Tried to modify the ARP file on the Pixel. Worked with FX explorer. Edited with correct MAC Address and was able to save, but when I checked it again, It had the old MAC in there.
Copied ARP file to SD Card edited and then copied back on Pixel with FX explorer using root. Said copy/overwrite was successful, but same old MAC is in there.
All other devices (Windows laptops/Desktops, Linux VMs, Raspberry Pis, Smart Thermostats, and IP cameras) don't have any issues and have the correct MAC entry in the ARP Table. It has been several days since I did the migration and I would have thought that these Android devices would have had the ARP entry expire by now.
Anyone have any ideas or seen this before?
Thanks for your time!

Related

How to communicate with Android from a PC ?

Hi,
I want to write a program ,which will communicate to the available android mobile device via wi-fi .(Note :I do not want to use the USB cable)
That moblile device is having an IP in it by a wi-fi connection with it.The major thing is that i pinged that IP and I am getting connection packets getting back to my pc,means I can communicate with the devices. so can I able to get the details of the device.
details means
1.its name what user sets on it.
2.some address like mac in computers.
3.model name.
4.type of os in it.
etc
I really find this interesting but,no idea how to do but i got something like ARP protocol for getting the mac address but I do not know how to communicate with a phone with this ARP protocol.
Can we communicate by the SSH as it a linux kernel based OS .Kindly give me a way how to get these information.
can any one have some idea ,kindly tell me,it is very important for my project.
Thanks

[Q] ES File Explorer and Windows 7

Here is my setup:
Nexus 7 2013 and Samsung Galaxy S4, both running ES File Explorer 3.0.5.3
Windows 7 x64 Pro (Hosting the files)
ASUS RT-AC66U
The system works just fine after a fresh reboot of my PC. After a few hours, I get the "Login Fails" error (plain text or SMB). The only way to fix it is to reboot my PC. I believe its a Windows 7 setting that causing this. I searched all over the net for a fix and none of them worked. I tried:
Enabling Guest Account
Changed Advanced Sharing Settings
Set "Everyone" as read in the File Share Window
Enabled Inbound/Outbound rules in the Advanced Windows Firewall
Enabled sending unencrypted passwords to SMB via Local Security Policy
I can go into more detail of the fixes I tried if needed. What is an alternative to sharing files from a Windows 7 machine to Android devices? I feel like Ill never get ES File Explorer to work. Thanks.
Try the AntTek Explorer. I have 3 machines running Windows 7 Ultimate x64 and a server running Windows Server 2008 x64, a Samsung Galaxy Note 10.1 2014 edition, a Samsung Galaxy S4, a Samsung Galaxy Tab 2, a Google Nexus 7, and a Samsung Galaxy S3. I'm using the Asus RT-AC66U as my main router and have a Linksys EA4500 and a Drink 5ghz single band both running in bridge mode and a Western Digital Wireless AC Repeater. All my mobile devices I've been able to setup the Asus under the network settings using AntTek as a my file browser. Also install AiCloud, which not only let's you access and stream music/videos when you're on the network, but you can stream from the USB drive remotely and connect to any computer on your network to share files or stream data.
Sent from my SM-P600 using XDA Premium HD app
virus86 said:
Here is my setup:
Nexus 7 2013 and Samsung Galaxy S4, both running ES File Explorer 3.0.5.3
Windows 7 x64 Pro (Hosting the files)
ASUS RT-AC66U
The system works just fine after a fresh reboot of my PC. After a few hours, I get the "Login Fails" error (plain text or SMB). The only way to fix it is to reboot my PC. I believe its a Windows 7 setting that causing this. I searched all over the net for a fix and none of them worked. I tried:
Enabling Guest Account
Changed Advanced Sharing Settings
Set "Everyone" as read in the File Share Window
Enabled Inbound/Outbound rules in the Advanced Windows Firewall
Enabled sending unencrypted passwords to SMB via Local Security Policy
I can go into more detail of the fixes I tried if needed. What is an alternative to sharing files from a Windows 7 machine to Android devices? I feel like Ill never get ES File Explorer to work. Thanks.
Click to expand...
Click to collapse
I have this same exact issue with one of my computers, but the other computer always works fine.
Not sure what Windows setting is causing this issue.
This issue only applies to android devices where it will start giving login failed after a few hours, but other windows PC can still access those folders.
cpxazn said:
I have this same exact issue with one of my computers, but the other computer always works fine.
Not sure what Windows setting is causing this issue.
This issue only applies to android devices where it will start giving login failed after a few hours, but other windows PC can still access those folders.
Click to expand...
Click to collapse
any update to this problem ? I have the same issue and it's driving me nuts.
When I reboot, I can connect fine .. but then a few hours later or so .. it won't And only on android (and ios I see now) .. other win7 or win 8 devices connect fine.

[Q] Samba network share issue - Windows

Hi there,
I've got a strange problem with my Samba filesharing on Android.
On my Nexus 4 I'm using latest AOPK ROM and I tried several samba servers (Samba filesharing; SambaDroid; Samba Server) - of course not simultanously. With all apps I've got the problem, that although I can see and connect to the Nexus via Windows and I can see the shared folder "SDCARD" but I can't access the folder.
Username and password are correct since I can connect to the device and see the folder.
I get network error 0x80070043 an Windows 7. I already activated "Send LM & NTLM -- use NTLMv2 session security if negotiated" for “
Network Security: LAN Manager” in the LocalPolicies and set encryption level below 128bit.
On my OnePlusOne everthing works fine. The only differences in configuration are that the OPO has CM11 running and there is XPosedFramework with XPrivacy on the Nexus. But all rules are deaktivated for the Samba servers in XPrivacy. I installed XPrivacy after the error occured for the first time anyway.
I couldn't find any special rules for the right management regarding the storage in the AOKP ROM.
Any ideas what is going wrong or what I'm missing?

access apple files from android

I'm trying to access a share on a Mac from Android. The share is on a FAT32 external drive, and I can browse/access it from another Mac and from a PC. But when I try to connect from Android, I get an error on the username/password (same user/pass as I'm using from other Mac and from PC). This happens with both ES File Explorer and AndSMB. I've tried both checking and unchecking the "Windows File Sharing" checkbox on the Mac, using anonymous, and two different userids (one a login user, the other a "sharing-only" user). The Android tablet (Galaxy Note 12.2 running CyanogenMod 12.1/Android 5.1.1) can access Windows shares but I need to get to some stuff on the Mac. My phone (stock GS6) is the same--can access Windows and my router's USB share but not the Mac.
I'd like to use SMB instead of something like file transfer because I want to stream video from my Mac to my kids' android tablets on a long airplane flight.
Searching didn't turn up anything useful so I'd appreciate pointers to threads where this has been discussed.
TIA.
Bill

How to preserve spoofed MAC address after reboot?

Some of my Android 9 and 10 devices do not come with "Randomize WiFi MAC Address" feature, but they do allow MAC address spoofing with "ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX" and it works. The problem is that spoofed MAC address resets back to original one after device reboot. There are some MAC-spoofing apps, but they don't address the issue of MAC addresses resetting back to natives one after device reboot. There doesn't appear to be a Magisk module for this purpose either.
Can someone can advice me on how to create a simple script that forces a specific wlan0 MAC address during device boot? It is important for the MAC address to be spoofed before any wlan0 connections occur. Therefore, it can't be one of those scripts that execute commands after the device is already booted because by then the device can connect to a WiFi network with native, non-spoofed MAC address.
I would actually prefer if someone could write the script for me or just create a Magisk module. I am very new to how Linux works.

Categories

Resources