• 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
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones