Arduino Ethernet Shield 2 stuck on EthernetServer::begin()
You must use these libraries:

#include &lt;Ethernet.h&gt;  --&gt;  #include &lt;Ethernet2.h&gt;
#include &lt;EthernetUdp.h&gt;  --&gt;  #include &lt;EthernetUdp2.h&gt;


More info at this link Arduino Ethernet Shield2