analogWrite freeze the arduino

const int greenPin = 10;

With the Ethernet shield in use? I don't think so.