Fixing socket error when bad port on AppleTV