Which Ethernet chip are you using?
That code will only work with the W5100 chip.The ENC28J60 requires using different libraries that you can check out in the ETHER_28J60 Arduino examples.
I ask this because I got the same results as you until I realized that I was using the incorrect libraries (IP of 0.0.0.0).