title: Awesome Player Error - 3G Only
body: <p>I have some code that plays an <code>MP3 stream</code>, and when running on <code>wifi</code> this is working flawlessly.  When I try to run exactly the same code on a 3G connection, <code>AwesomePlayer</code> returns a <code>-1004 error</code>, with no <code>HTTP</code> errors.  </p>
  
  <p>There is a copy of the log below.</p>
  
  <p>I have tried connecting to the server using the internet browser and this works fine, so it's not a routing issue.</p>
  
  <pre><code>08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238): Client(14) constructor
  08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238): Create new client(14) from pid 4482, url=http://212.48.126.146:8060, connId=14, audioSessionId=16
  08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238): setDataSource(http://212.48.126.146:8060)
  08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238): getPlayerTypeFromMAP(http://212.48.126.146:8060): PLAYERS_MAP[25].playertype 0
  08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238): player type = 4
  08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238):  create StagefrightPlayer
  08-02 11:31:41.018: VERBOSE/AudioSink(1238): AudioOutput(16)
  08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238):  setDataSource
  08-02 11:31:41.018: INFO/StagefrightPlayer(1238): setDataSource('http://212.48.126.146:8060')
  08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238): [14] setAudioStreamType(3)
  08-02 11:31:41.018: VERBOSE/MediaPlayerService(1238): [14] prepareAsync
  08-02 11:31:41.018: INFO/NuHTTPDataSource(1238): overrides append
  08-02 11:31:41.018: INFO/NuHTTPDataSource(1238): connect to 212.48.126.146:8060/ @0
  08-02 11:31:41.018: INFO/NuHTTPDataSource(1238): ENTER connect
  08-02 11:31:41.018: INFO/NuHTTPDataSource(1238): [Stagefright] 212.48.126.146 is not localhost
  08-02 11:31:41.018: INFO/NuHTTPDataSource(1238): [Stagefright] do not use http proxy 
  08-02 11:31:41.018: INFO/HTTPStream(1238): start connect_nonb
  08-02 11:31:41.108: INFO/HTTPStream(1238): back from connect_nonb
  08-02 11:31:41.108: INFO/HTTPStream(1238): start connect_nonb
  08-02 11:31:41.228: INFO/HTTPStream(1238): back from connect_nonb
  08-02 11:31:41.398: INFO/NuHTTPDataSource(1238): LEAVE connect
  08-02 11:31:41.398: INFO/AwesomePlayer(1238): mConnectingDataSource-&gt;connect() returned -1004
  08-02 11:31:41.398: VERBOSE/MediaPlayerService(1238): [14] notify (0x38350, 100, 1, -1004)
  08-02 11:31:41.408: ERROR/MediaPlayer(4482): error (1, -1004)
  08-02 11:31:41.408: ERROR/MediaPlayer(4482): Error (1,-1004)
  </code></pre>
  
  <p>If anyone has any ideas I can try I would be grateful.</p>
  
  <p>Many thanks in advance,</p>
  
  <p>Neil.</p>