arduino/Arduino — pull request #2345 by JChristensen (2014-10-06 03:24:45+00:00)
Title: Change EthernetClient to use IANA recommended ephemeral port range

Certain ISPs block certain ports and this can cause connect failures for Ethernet clients. By changing the port range used in EthernetClient.cpp from 1024-65535 to the IANA-recommended "ephemeral port" range of 49152-65535, these failures should be minimized as ISPs should be less likely to block ports in this range. Note that recent versions of Windows and FreeBSD use the IANA-recommended range. See http://en.wikipedia.org/wiki/Ephemeral_port

In my case, failures occurred on port 1080, which is blocked by Comcast (one of the largest ISPs in the USA), see http://customer.comcast.com/help-and-support/internet/list-of-blocked-ports/