Have you assigned the internet permission?

On Sep 11, 1:28 pm, jag <vij...@yahoo.com> wrote:
> final int port = 5060;
>   byte[] inviteBytes = sipInvite.getBytes();
>         DatagramPacket packet = new DatagramPacket(inviteBytes,
>                 inviteBytes.length, toInetAddress, port );
>         DatagramSocket serverSocket = new DatagramSocket(port );
>         serverSocket.send(packet);
>
> 09-10 19:18:00.107: WARN/System.err(5408): java.net.SocketException:
> Operation not permitted
> 09-10 19:18:00.117: WARN/System.err(5408):     at
> org.apache.harmony.luni.platform.OSNetworkSystem.sendDatagramImpl(Native
> Method)
> 09-10 19:18:00.117: WARN/System.err(5408):     at
> org.apache.harmony.luni.platform.OSNetworkSystem.sendDatagram(OSNetworkSystem.java:
> 571)
> 09-10 19:18:00.117: WARN/System.err(5408):     at
> org.apache.harmony.luni.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:
> 275)
> 09-10 19:18:00.117: WARN/System.err(5408):     at
> java.net.DatagramSocket.send(DatagramSocket.java:463)
> 09-10 19:18:00.117: WARN/System.err(5408):     at
> com.icast.mypie.sip.SipClient.doConnect(SipClient.java:71)
> 09-10 19:18:00.117: WARN/System.err(5408):     at
> com.icast.mypie.sip.SipClient.run(SipClient.java:43)
>
> nexus 2.2,
> device connects via wifi
> port not blocked
> datagram send works from android 1.5 moto blur.

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

Reply via email to