1. Are you ready for the Galaxy S20? Here is everything we know so far!

TCP communication.

Discussion in 'Android Development' started by karthick86mca, May 25, 2011.

  1. karthick86mca

    karthick86mca Lurker
    Thread Starter

    Hi,

    I am having doubt on TCP sockets. I am trying to do an client-server application. Server should be running in android emulator. client will be in java application. If i am trying to connect from java tcp client to android tcp server, connection refused error is coming. I read lot of things regarding this. Finally i came to know this..

    android emulator is running in 5554 port. my tcp server in andorid emulator is running in 7654 port. Thats why we cant connect to the server directly. we need port forwarding. But i dont know how to do port forwarding.. please help me...out.. thanks
     



    1. Download the Forums for Android™ app!


      Download

       
  2. RazzleFnDazzle

    RazzleFnDazzle Well-Known Member

    I don't have any real information for you on this, but I hear a lot of people actually connection issues with the emulator. I'm not even sure if it supports it. Your best best is to run your application on a phone itself (connected via wireless) to test it.
     
Loading...

Share This Page

Loading...