• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Fixed IP Address

Q&A Forum › Category: ESP32 › Fixed IP Address
0 Vote Up Vote Down
Charles Sherry asked 6 years ago

This is probably a pretty basic question, but I tried the tutorial and reassigned my ESP32 a new IP Address. Like your tutorial, it worked. My question is, how do I use it? I tried typing the new IP Address in to my browser (after connecting to the ESP32) but nothing happens. My sketch seems to work only when I use the 192.168.4.1 (the original IP Address of my ESP32). I’m sure it’s operator error. Any suggestions?
Thank You – Charles

Question Tags: Reassigning IP Address
8 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago
  • What do you mean by it worked? Can you find your ESP connected to your network with the IP address that you’ve assigned?
  • Did you assign the IP in the code or directly in your router?

Regards,
Rui

0 Vote Up Vote Down
Charles Sherry answered 6 years ago

Sorry. Your code will show the new IP address via the serial port. That works. I get the same output as your example (https://rntlab.com/module-12/esp32-static-fixed-ip-address/). When I reboot my ESP, the only way to connect to it, is via the original IP address (192.168.4.1) The new IP address 192.168.1.168 will not connect. Perhaps the problem is I’m not connecting to a network. I’m trying to use my ESP as a access point using ESP32WebServer.h. Not sure if that makes a difference. I did assign the IP in the code.

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

If you don’t assign an IP address, what’s the default IP address assigned to your ESP in your network? 

0 Vote Up Vote Down
Charles Sherry answered 6 years ago

Hi Rui, The default IP is 192.168.4.1

0 Vote Up Vote Down
Charles Sherry answered 6 years ago

The default IP is 192.168.4.1. In your sketch, we change the IP to 192.168.1.168. When I reboot and run the sketch, I get the same result as your demo. I up load another sketch, and my IP seems to return to 192.168.4.1.

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

When using which project? The Access Point project?

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

But are you using this exact code? https://rntlab.com/module-12/esp32-static-fixed-ip-address/
Or you already modified one of my other projects to assign a fixed IP address? Because I’m not sure which code are you uploading to your board…

0 Vote Up Vote Down
Charles Sherry answered 6 years ago

I’ll work with it some more. Thank Rui. 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.