Permission problem for DatagramSocket

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Permission problem for DatagramSocket

Postby xiaoboalex » Sun Jan 03, 2010 3:44 am

It seems that adding “android.permission.INTERNET” doesn't take effect for DatagramSocket,
It still throws exception (INTERNET permission) when creating DatagramSocket.
But this permisson is available for java.net.URL. Does anyone know the reason?
Thanks a lot in advance.
xiaoboalex
Freshman
Freshman
 
Posts: 2
Joined: Sun Jan 03, 2010 3:38 am

Top

Postby xiaoboalex » Tue Jan 05, 2010 6:01 am

Solved. This is caused by lacking root permission. Only root can bind port number less than 1024.
xiaoboalex
Freshman
Freshman
 
Posts: 2
Joined: Sun Jan 03, 2010 3:38 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests