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

I have the GPIOVIEWER running now on several of my projects and it is indeed a great solution. But I have an issue with the Web Application URL #93

Open
Marcelverhoeven opened this issue Feb 7, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Marcelverhoeven
Copy link

Once a project is put in practice the USB port is not always accessible anymore. So this makes it difficult to find the IP address. (example 192.168.1.53)
In general the first 3 numbers do not change but the last one might change.
So it would be nice if we could have a fixed IP address: example 192.168.1.200.

@thelastoutpostworkshop thelastoutpostworkshop self-assigned this Feb 7, 2024
@thelastoutpostworkshop thelastoutpostworkshop added the enhancement New feature or request label Feb 7, 2024
@toetoast
Copy link
Contributor

toetoast commented Feb 9, 2024

Just some reference information for you:

  1. Almost all Wifi routers will issue a dynamic IP address (to a connecting client) from a range of values using the DHCP protocol. In your case this range will be probably be 192.168.1.1 to 192.168.1.255 (so this allows for 255 connected devices on your home network).
  2. Since the ESP32 obtains it's IP from the above list, I'm not aware of how it can request the same IP each time, but happy to stand corrected on this.
  3. Firstly, I'd recommend looking online for information on your make & model of router being used. Look for tips on how to lock the ESP32 issued IP from changing. This is called a DHCP reservation, which locks the ESP32 Wifi MAC address to a specific unused IP that you specify or the one currently assigned to the ESP32.

Good luck!
Tony

P.S. Had a quick look and it seems there is a way of doing this from the ESP32:
https://www.electronicwings.com/esp32/esp32-setting-static-ip-address

However, it's still best practice to go along the DHCP MAC reservation path I mentioned above, since the IP address you give to the ESP32 in code may not always be available, especially in a household with many people with phones and other devices leasing IP addresses all the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants