Have you found a solution for your problem yet?

On the Android documentation I have seen that port forwarding is right
now only supported for TCP connection (http://developer.android.com/
guide/developing/tools/adb.html#forwardports).

I experienced with Voip and SIP on the Android platform using a real
device is much faster to setup than using the emulator. Furthermore
you might run in some NAT issues which you have to resolve on the
client when you have no SIP server involved in your setup.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Jun 4, 2:49 am, upi <[email protected]> wrote:
> Hi,
>
> Please help me, I have been struggling for the solution for more than
> a month.
>
> I am trying to port a VoIP application based on SIP protocol to
> android.
>
> I want to test this application first on two emulators running on two
> different PCs connected via LAN.
>
> The problem is that, the communication is not happening when I run the
> application on two PCs.  The same application works when I run it's
> non-android version on the same PC's.
>
> I have identified the following problem.
> Let's say there are two computers C1(192.168.1.101), C2(192.168.1.102)
> connected in a LAN.
>
> Emulator E1 is running on C1
> Emulator E2 is running on C2
>
> The application uses UDP protocol and the port being used is 5060 on
> both computers.
>
> I have setup port forwarding on both the emulators. This is the
> command used for that in Android console.
> redir add udp:5060:5060
>
> When we make a voip call from E1 with the URL 192.168.1.102:5060, then
> E2 responds to the call, but what ever E2 sends in response is not
> coming back to E1, and hence E1 is timing out.
>
> When I observed the log files, actually E2 is sending the response to
> 10.0.2.2:5060, which is the C2's loop back address(127.0.0.1). How do
> we resolve this issue?
>
> I have gone through the developer guide where they have mentioned
> about two emulators communicating on single PC. But looks like this
> concept doesn't work when we run emulators on two different computers.
>
> I tried 'redir' command for port forwarding and added INTERNET
> permission, still it doesn't work.
>
> My question is, Is it possible to implement this communication on two
> emulators? and if yes, How to do this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to