An example Arduino script that does BOTH EthernetServer , AND EthernetClient
AND is compatible with Arduino IDE 1.0.x ( tested on 1.0.3 ) .      Obviously, this needs an Ethernet shield  and an Arduino.  :-)