Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ESP32 doesn't clear the IP address manually assigned #360

Closed
1 task done
Toy203 opened this issue Aug 9, 2024 · 9 comments
Closed
1 task done

[Bug]: ESP32 doesn't clear the IP address manually assigned #360

Toy203 opened this issue Aug 9, 2024 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@Toy203
Copy link

Toy203 commented Aug 9, 2024

What actions were attempted?

I was still tinkering with the wifi settings, it appears to me that even if the checkbox is off the ESP still takes the manually added IP address instead of getting the one assigned from the phone tethering.
In this case, the 11.112
image
was manually added in the option but i marked off the option:
image

What actually happened?

...and yet it still takes it. Even if i delete the data in form entirely keeps the same settings, can't make it just take the granted IP from the tethered wifi network

What was expected?

Got the feeling MAYBE if it took the assigned ip address by default it might finally be reachable from my phone withouth headaches.

Firmware Version

5.3.2

Mode in Use

Super Hero / Video Game

Notable Hardware

ESP32

Homework Completed

  • I did my part!
@Toy203 Toy203 added the bug Something isn't working label Aug 9, 2024
@Toy203 Toy203 changed the title [Bug]: ESP32 doesn't clear the IP address assigned [Bug]: ESP32 doesn't clear the IP address manually assigned Aug 9, 2024
@DustinGrau
Copy link
Collaborator

This might have more to do with the DHCP lease time. I can't really control the devices that are assigning the IP address, but leaving the toggle OFF should allow the device to pick up whatever has been assigned to it.

I need more explanation though: what is the IP address you manually set? What is the IP range your phone is handing out? Your statement isn't clear as to which the "11.112" is referring to.

@Toy203
Copy link
Author

Toy203 commented Aug 9, 2024

I assigned the 192.168.11.112 manually in the ESP32. My damn Samsung s22 has the infuriating habit of changing the second to last IP value randomly after some time (days? Dunno) , so while it was indeed that the correct IP it assigned to the ESP last time I looked into it, now it assigns something like 192.168.88.112 or something like that, and it'll keep changing. Such idiotic functionality, I get the benefit but I can't disable it or assign fixed IPs on phone side.

Anyway, I noticed if I manually assign the new correct IP (connecting to the ESP wireless network with my pc) I can reach it through my phone tethering.

@DustinGrau
Copy link
Collaborator

You may need to just keep overriding with the manual IP then, something that's on the same network and can reach the phone. I honestly wish I knew how these hotspots serve up IP's, as I know even my iPhone gives out some strange IP's.

@Toy203
Copy link
Author

Toy203 commented Aug 9, 2024

I see, hoped i could somehow wipe the ESP IP data to avoid the second device thing.

@DustinGrau
Copy link
Collaborator

Try to clear all the info, including the SSID and password for the external wifi, and it should reset everything.

@DustinGrau
Copy link
Collaborator

Alternatively, change some character in either of those fields, and it should force the IP info to get fully reset because it will think it's a completely different network to join.

@Toy203
Copy link
Author

Toy203 commented Aug 9, 2024

Thanks for the suggestion, I'll look into it a bit further then.

@Toy203 Toy203 closed this as completed Aug 9, 2024
@Toy203 Toy203 reopened this Aug 9, 2024
@Toy203
Copy link
Author

Toy203 commented Aug 9, 2024

Just a small update. Changing the SSD in the settings cleared IP setting correctly. Now the ESP got a new IP assigned correctly from the phone;

image
Uploading image.png…

But as you can see it's displayed like i'd manually add it in the settings like before. I hope the next time my damn phone will change it to 192.168.XXX.112 again the ESP will accept the new one and not stick to the old one it have in memory.

@Toy203 Toy203 closed this as completed Aug 9, 2024
@Toy203
Copy link
Author

Toy203 commented Aug 14, 2024

It freaking worked! As a side note, apparently my s22 likes to change tethering ip assignments after each reboot.

@nomakewan nomakewan mentioned this issue Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants