have you checked if it's not a problem with the chip select pin?
Which ethernet shield are you using?