1. Download our Official Android App: Forums for Android!

Apps adb forward error

Discussion in 'Android Development' started by androidPete, Oct 21, 2009.

  1. androidPete

    androidPete Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Oct 21, 2009

    Oct 21, 2009
    2
    0
    5
    Hi everybody,

    I'm writing an android app that communicates with the pc via socket connection. I have a HTC magic and am connected to a PC running XP SP3. The mobile phone is connected to the PC by a USB cable. "adb device" shows my mobile. So far so good. Today the mobile asked me if I want to update the system and since I did so "adb forward tcp:5555 tcp:44000" replies with "error: cannot bind socket".

    Any suggestions what might go wrong here? Or what else zu check? :thinking:
     

    Advertisement

  2. androidPete

    androidPete Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Oct 21, 2009

    Oct 21, 2009
    2
    0
    5
    The problem doesn't seem to be the mobile phone but the adb server. After killing it and starting it again, the port forwarding works. (For all those who know "The IT Crowd": "Did you try to turn it off and on again?" :D)
     

Share This Page

Loading...