5 Replies Latest reply on Jun 15, 2011 8:08 AM by DachFlach

    Flex Hero on Android, ServerSocket won't bind (Error #2002)

    EhlersD Level 1

      Really simple code:

       

                          serverSocket = new ServerSocket();
                          serverSocket.addEventListener(Event.CONNECT, incomingSocketConnect);

       

                          try

                          {
                               serverSocket.bind(12346, "127.0.0.1");

                          }

                          catch(e:IOError)

                          {

                               // error

                          }

                          serverSocket.listen();

       

      Even on a stripped down mobile app, with nothing but this in the View "creationComplete" handler, the bind statement is throwing an Error #2002.

       

      I have tried different ports (8087, 8080, 4444, 42345, etc) all with the same result.

       

      HELP!!??

       

      Darren