I'm new to Android development and I hope you can help me out.
I use android studio in Linux to develop an UPnP application. On my PC, there are 2 networks, 1 connects to internet by eth0 and another connects to a private network by eth1.
When I launch my application, it can find UPnP servers which locate in network which connect to eth0 but not the one which connect to eth1.
By looking at Setting up Redirection through the Emulator Console, I found a way to redirect network from port 1900 to Android emulator and my application can now find UPnP server in private network.
Android Console: type 'help' for a list of commands
OK
redir add udp:1900:1900
OK
redir add udp:51844:51844
OK
redir add tcp:80:80
KO: can't setup redirection, port probably used by another program on host
The problem is that it's not possible to redirect the protocol tcp from port 80 to streaming video.
My questions are:
1- is there a way to tell android emulator listen on eth1 and not eth0. Or if possible to listen to both eth0 and eth1.
2- if not, how can I redirect port 80 in order to streaming video with my app?
Thanks for your help.