Hi All, I am trying to send UDP packets over a WIFI connection from my phone to a Server on my pc. Here is the code that I have on my client:
String data = "Testing"; byte [] buffer = data.getBytes(); DatagramPacket packet = new DatagramPacket(buffer, buffer.length, new InetSocketAddress(ipaddress, port)); DatagramSocket socket = new DatagramSocket(5003); socket.send(packet); I have tried this code in a Java app sending from my laptop to my desktop and it works fine. I am assuming its because I am not setting up the WIFI connection properly that it is not working on my phone. Any ideas? -- 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