I have forwarded machine port to emulator using following command
adb forward tcp:1234 tcp:8080
I wanted to see currently what all ports are forwarded to avoid any conflicts. How to do that ?
Do you mean you want to see which ports are being used on the PC or Android device? You can use the
On Linux: `netstat -an | grep "LISTEN " (notice the space after LISTEN)
This shows all the ports that are listening for incoming connection (i.e. have a server of some kind behind them). If you need to know which server, you can use this on Linux: