• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Avail] (easy) REAL wifi FIX for "obtaining ip address" loop--found by me

for this you have to navigate to the above location using any root explorer, i use x-plore, and then long click on the file and make sure the check boxes are checked on the permissions to "execute" for each user group.

Do you have to be rooted to use this? Because when I'm on my Galaxy Note 2 the "permissions" option isn't there in x-plore.

EDIT: I just saw post #19..
 
Upvote 0
I'm sorry, for the simple minded (like me) you might have to re-explain.
I have x-plore and found the folder and file.
When I am in Superuser+mount writable I cannot open /root. I can only open it in Normal configuration. When I do open dhcpd-run-hooks it says Error Loading File.

Any help would be appreciated.
 
Upvote 0
I'm sorry, for the simple minded (like me) you might have to re-explain.
I have x-plore and found the folder and file.
When I am in Superuser+mount writable I cannot open /root. I can only open it in Normal configuration. When I do open dhcpd-run-hooks it says Error Loading File.

Any help would be appreciated.


sorry, but it's explained as simply as it can be.

it's not rocket science lol

but i guess i'll make a video since no one can seem to figure anything out without one...

give me just a few minutes and i'll post a vid in first post
 
Upvote 0
Thank you for the video. As I originally said, my problem is that when I change the configuration to Superuser+mount writable I can't access /root anymore. Why is this?? I am ready to throw the phone into a wall.


you're not properly rooted.

sounds like you used the inferior update to root as it has the incorrect su binary i believe...

use my root update to root your device and then try again
 
Upvote 0
Ok latest thing. I finally gained root access (you were right Stayboogy) however your fix didn't seem to fix the problem. Downloaded Catlog but don't understand what they are saying. Basically I'm gonna take it back to vodafone tomorrow if I can't find a solution.

there have been other threads that have posted other fixes as well, i just don't have the time to link to them.

read post #15 here http://androidforums.com/merit-all-things-root/676258-root-update-zip-root.html

that may help whatever problem you are having

otherwise, you can always use the static ip work-around, but that is not a fix and it will not help you connect to wifi connections that are not your own
 
Upvote 0
Hmmm... how very odd... /etc/dhcpd/dhcpd_run_hooks now shows permission 0550 or read and execute for dhcp.shell

I added global permission for read and execute to dhcpd_run_hooks or 0555. No change - the loop persists. CatLog doesn't show any obvious errors (e.g., permission errors) aside from saying the connection attempt is ultimately rejected after repeated attempts.

BTW, this is all happening with V4.1.2

I'm rapidly losing my religion on this problem...
 
Upvote 0
Here's where things stand. The file in /data/misc/dhcp/ is a PID file, and it's empty, even when trying to connect. There's nothing in there according to FX's binary viewer. The recommended fix (add execute permission for "others" - AKA "global") is installed. I did a reboot to be sure the permission change was picked up (shouldn't need to do this but it can't hurt). I think the PID file is empty because DHCP didn't assign an IP to the phone.
 
Upvote 0
here is a REAL FIX, NOT WORK-AROUND for the "obtaining ip address" loop without setting static ip address.

i found this myself, by examining error log dump, logbox, which for me was showing "E/dhcpcd ( 7097): / system/etc/dhcpcd/dhcpcd-run-hooks: Permission denied"

system/etc/dhcpcd/dhcpcd-run-hooks needs to have permissions fixed to "execute" by "user" "group" and "others" by using your favorite file explorer

this will fix your "obtaining ip address loop" without having to ever use static ip address

or at least it did mine.

Thanks for this, saved me from a software reset and another 2 weeks to find a solution.
 
Upvote 0
Kudos buddy!
My note4 was doing this on some wifi (hotspot) connections. It was such a hassle trying to guess an ip address.
Applied your fix as is. And now my dhcp connection is working like a champ.
I'm on kikkat 4.4.4 stock with root.
(I used ESFolder. Make sure root explorer is enabled...within ESFolder tools setting).
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones