Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to Assign a Static / Fixed IP Address | ESP8266 | ESP32 | Arduino
ChannelMish Mash LabsDescription from the creator
Mish Mash Labs present how to set a static of fixed IP address for your Espressif ESP8266, ESP32 or Arduino Board.
If you’re running a web server or client over WiFi or Ethernet with your Espressif ESP8266, ESP32 or Arduino Board and every time you restart your board it has a new IP address which is what happens when you use the default DHCP (Dynamic Host Configuration Protocol) you can follow this tutorial to change the settings to assign a static or fixed IP address.
Code used:
Before the setup loop:
// Set your Static IP Address Settings
IPAddress local_IP(192, 168, 1, 199);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 0, 0);
IPAddress primaryDNS(8, 8, 8, 8); // this is optional
IPAddress secondaryDNS(8, 8, 4, 4); // this is optional
In the setup loop:
// Print feedback if the settings are not configured
if (!WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS)) {
Serial.println("STA Failed to configure");
}
See our GitHub for complete sketch:
github.com/mishmashlabs/Adding_Static_IP
#ESP32 #ESP8266 #Arduino #Static #IP #tutorial #mishmash
Instagram: www.instagram.com/mishmashlabs/
Twitter: www.twitter.com/mishmashlabs/
Music Credits:
Intro & Outro by audionautix.com
If you’re running a web server or client over WiFi or Ethernet with your Espressif ESP8266, ESP32 or Arduino Board and every time you restart your board it has a new IP address which is what happens when you use the default DHCP (Dynamic Host Configuration Protocol) you can follow this tutorial to change the settings to assign a static or fixed IP address.
Code used:
Before the setup loop:
// Set your Static IP Address Settings
IPAddress local_IP(192, 168, 1, 199);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 0, 0);
IPAddress primaryDNS(8, 8, 8, 8); // this is optional
IPAddress secondaryDNS(8, 8, 4, 4); // this is optional
In the setup loop:
// Print feedback if the settings are not configured
if (!WiFi.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS)) {
Serial.println("STA Failed to configure");
}
See our GitHub for complete sketch:
github.com/mishmashlabs/Adding_Static_IP
#ESP32 #ESP8266 #Arduino #Static #IP #tutorial #mishmash
Instagram: www.instagram.com/mishmashlabs/
Twitter: www.twitter.com/mishmashlabs/
Music Credits:
Intro & Outro by audionautix.com
About this tutorial
Mish Mash Labs published this 4:07 video tutorial on October 13, 2020. It has been watched 40,063 times on YouTube.
- Channel
- Mish Mash Labs
- Category
- Education
- Duration
- 4:07
- Published
- October 13, 2020
- Views
- 40,063
- Likes
- 537
Share
This tutorial in other languages
- FRComment attribuer une adresse statique / IP fixe | ESP8266 | ESP32 | Arduino
- ESCómo asignar una estática / dirección IP fija | ESP8266 | ESP32 | Arduino
- PTComo atribuir um Estático / Endereço IP fixo | ESP8266 | ESP32 | Arduino
- ITCome assegnare uno statico / Indirizzo IP fisso | ESP8266 | ESP32 | Arduino
- DEWie eine statische / feste IP-Adresse zuweisen | ESP8266 | ESP32 | Arduino
- NLHoe maak je Wijs een statisch / vast IP-adres | ESP8266 | ESP32 | Arduino
- RUКак назначить статический / Фиксированный IP-адрес | ESP8266 | ESP32 | Arduino
- PLJak przypisać statyczny / stałego adresu IP | ESP8266 | ESP32 | Arduino
- JA静的/固定IPアドレスを割り当てる方法| ESP8266 | ESP32 |アルドゥイーノ
- ARكيفية تعيين ثابت / ثابت IP عنوان | ESP8266 | ESP32 | اردوينو
- HIकैसे असाइन करने के लिए एक स्थिर / फिक्स्ड आईपी पता | ESP8266 | ESP32 | Arduino
- IDCara Menetapkan Static / Tetap IP Address | ESP8266 | ESP32 | Arduino