Mega 2560 Ethernet connection - unreliable connections

I posted a while back a small tutorial in french to demonstrate how this could work.. may be with the help of google translate (if you don't speak french) you can make sense of it? (or just have a look at the code)