• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps TCP communication.

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
 
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.
 
Back
Top Bottom