BUG: W5100 cannot use socket as UDP after using it as TCP

Not a bug. It works fine on IDE v1.0.4. I'm still running your code, and it is doing great, except the "No data received" message on my web browser.