Menu

Hostname

2024-09-20
2024-09-20
  • Dave Wilkes

    Dave Wilkes - 2024-09-20

    Is there a simple way to change the host name of the esp32?

     
  • brownrb

    brownrb - 2024-09-20

    Not sure what you mean by hostname?
    A bit more specific?
    is it on a web page
    or boot log or what?

     
  • brownrb

    brownrb - 2024-09-20

    to change hostname

    in the .ino file

    under // FOCUSER SETTINGS in .ino
    about line 410?
    add this line

    String hostname = "Daves nyFP2ESP32";

    Next setup()
    Find this line
    WiFi.mode(WIFI_STA);

    Insert this line
    WiFi.setHostname(hostname);
    BEFORE the wifi.mode, so it looks like

    WiFi.setHostname(hostname);
    WiFi.mode(WIFI_STA);
    

    Then recompile and upload

    more info found here
    https://randomnerdtutorials.com/esp32-set-custom-hostname-arduino/

     
    👍
    1

    Last edit: brownrb 2024-09-20
  • Dave Wilkes

    Dave Wilkes - 2024-09-20

    perfect thank you

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.