I am trying to write a simple UDP server for android and when I run it I get the following exception: "java.net.socketException: Permission Denied" I tried to add the permission to my menifest (<uses-permission android:name="android.permission.INTERNET" />
) but I still get the same exception.
the code that causes the exception is:
int in_port = 61000
DatagramSocket server_socket = new DatagramSocket(in_port);
Does someone know what the problem might be?
Thanks, Binyamin