Answer the question
In order to leave comments, you need to log in
Why does ethernet give 0.0.0.0 ip?
Good afternoon :)
I bought myself a separate Ethernet for Arduino Uno. And I get something 0.0.0.0 IP. What could be the problem?
https://ru.aliexpress.com/item/Mini-ENC28J60-Ether...
Answer the question
In order to leave comments, you need to log in
Perhaps your source code is sharpened to work with DHCP and expects an ip address from it, but this DHCP itself is not physically in your network.
Or in the source code for the sketch that you upload to the arduino, you need to manually set the ip.
in the sketch itself, you need to write ip for arduino, at least I did this for ethernet shield
part of an example of one of my sketches, the
#include
#include LED
= 4 blinked through the browser;
byte mac[] = {
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //physical mac address
byte ip[] = {
192, 168, 1, 7 }; // ip in lan (that's what you need to use in your browser. ("192.168.1.178")
byte gateway[] = {
192, 168, 1, 1 }; // internet access via router
byte subnet[] = {
255, 255, 255, 0 }; //subnet mask
EthernetServer server(80); //server port
String readString;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question