[android-developers] Re: IP broadcast on emulator

2009-10-30 Thread Anders

No info on this?

On Oct 17, 8:17 am, Anders lanils...@gmail.com wrote:
 Bump

 On Oct 15, 3:12 pm, Anders lanils...@gmail.com wrote:

  Hi,

  I have an application that acts as both client and server. I have a
  scenario that I need to test that involves three devices. One of them
  needs tobroadcasta message (UDP) to the other two.
  Running on physical devices, this is not a problem, and it works fine.
  On the emulator however, this is much harder.
  I have managed to get it work for two devices using the emulator. Here
  my client threadbroadcastthe message to 10.0.2.255 port 6002, and
  server thread listens on port 6006. By using redir addudp:6002:6006
  the server receives the message fine.
  Now, if I add another instance and do the same portforwarding, only
  one of them receives the message. I also tried to use a different port
  number on the server, and forward port 6002 to that number, with the
  same result.
  It appears as if a port can only be forwarded from one instance.
  Does anyone of a method tobroadcastusing the emulator, without
  sending a separate message to each emulator instance?

  Thanks,Anders
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: IP broadcast on emulator

2009-10-30 Thread David Turner
well, this is simply not supported at the moment.

On Thu, Oct 15, 2009 at 6:12 AM, Anders lanils...@gmail.com wrote:


 Hi,

 I have an application that acts as both client and server. I have a
 scenario that I need to test that involves three devices. One of them
 needs to broadcast a message (UDP) to the other two.
 Running on physical devices, this is not a problem, and it works fine.
 On the emulator however, this is much harder.
 I have managed to get it work for two devices using the emulator. Here
 my client thread broadcast the message to 10.0.2.255 port 6002, and
 server thread listens on port 6006. By using redir add udp:6002:6006
 the server receives the message fine.
 Now, if I add another instance and do the same portforwarding, only
 one of them receives the message. I also tried to use a different port
 number on the server, and forward port 6002 to that number, with the
 same result.
 It appears as if a port can only be forwarded from one instance.
 Does anyone of a method to broadcast using the emulator, without
 sending a separate message to each emulator instance?

 Thanks,
 Anders
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: IP broadcast on emulator

2009-10-17 Thread Anders

Bump

On Oct 15, 3:12 pm, Anders lanils...@gmail.com wrote:
 Hi,

 I have an application that acts as both client and server. I have a
 scenario that I need to test that involves three devices. One of them
 needs tobroadcasta message (UDP) to the other two.
 Running on physical devices, this is not a problem, and it works fine.
 On the emulator however, this is much harder.
 I have managed to get it work for two devices using the emulator. Here
 my client threadbroadcastthe message to 10.0.2.255 port 6002, and
 server thread listens on port 6006. By using redir add udp:6002:6006
 the server receives the message fine.
 Now, if I add another instance and do the same portforwarding, only
 one of them receives the message. I also tried to use a different port
 number on the server, and forward port 6002 to that number, with the
 same result.
 It appears as if a port can only be forwarded from one instance.
 Does anyone of a method tobroadcastusing the emulator, without
 sending a separate message to each emulator instance?

 Thanks,Anders
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---