How to connect an Arduino via an ethernet cable to a laptop directly? Maybe a silly question, because it is a usual topic, but I have a problem with my Arduino Leonardo ETH.

I want to create a web server on the Arduino with the example sketch File &gt; Examples &gt; Ethernet &gt; WebServer. I plugged in the ethernet cable directly to my laptop. So there is no router or switch between them.

I also set the configuration to my ethernet port to the following IPv4 properties:


Then in the example sketch, I changed the MAC address according to the bottom sticker of my Arduino.

byte mac[] = {0x90, 0xA2, 0xDA, 0x11, 0x33, 0xD6};
IPAddress ip(192, 168, 1, 177);


Now when I compile and upload the sketch to the Arduino, everything is working fine until it prints the IP address. According to the IP address which I have set in the code (192.186.1.177), it shows me 0.46.46.46 as you can see in the picture:



This happens when I print that:

Serial.println("server is at ");
Serial.println(Ethernet.localIP());


Do you have any ideas how I could fix this? And why does it show me that invalid IP address?

Thank you in advance.
use the Ethernet2 library for W5500