I have been developing my project using static IP and every works great,
now I wanted to turn on DHCP
Bad news, DHCP got the IP assigned, but I can't connect to it via TCP
anymore (UDP works fine), and the only difference in codes are
if
(DHCP){ //This
gets the IP, but I can't open via
TCP
IP4_ADDR( &xIpAddr,0,0,0,0 );
IP4_ADDR( &xNetMask,255,255,255,0 );
IP4_ADDR( &xGateway,0,0,0,0 );
netif_add( &MACB_if, &xIpAddr, &xNetMask,
&xGateway, NULL, ethernetif_init, tcpip_input );