Step 1: make sure you can receive TCP. Step 2: open the right UDP
ports on your firewall and run Wireshark if you are still not
receiving anything. Debug based on what you see.Step 3: get it working
on a real phone using WiFi on the same local network as your emulator.

If it then fails when you use your phone carrier's data service, the
problem is almost certainly their firewall.

On Mar 17, 9:19 am, Scott <[email protected]> wrote:
> Hi
>
> I am trying to receive UDP data sent from server to my android
> emulator client. But i am not able to receive the UDP data in my
> android client application which is running on emulator.
> packet = new DatagramPacket(buf, buf.length);
> socket.receive(packet);
>
> 1) Can you please let me know how to fix it and receive UDP data on
> emulator from server application running on some other system.
>
> 2) Will i face same problem in receving UDP data if i run my client on
> the Android hardware/Android based mobile.
>
> 3) Will i face similar problem in receving the TCP based data when
> running the application on the Android Emulator.
>
> Kindly pleas guide/help me to get the answers to the above queries.

-- 
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