android


Why can't I initialize this socket?


I keep getting the following error:
W/System.err: Caused by: android.system.ErrnoException: socket failed:
EACCES (Permission denied)
I've searched multiple links online and I can't find a solution to let me initialize a new DatagramSocket to open a local socket. Here is my manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.upnext.upnext">
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<application
android:allowBackup="true"
EDIT: Maybe this helps, this is where I declare the socket:
int portNumber = 5000;
String ipAddress = "0.0.0.0";
DatagramSocket socket = new DatagramSocket(portNumber);

Related Links

Another Unsatisfied Linker Error. Cannot find 'main'
Transparent AlertDialog Android
AsynTask and Service binding
How to add parent activity when browser is opened from notifications
Android Switch thumb image stretched
How to create a layout like this?
INSERT with SELECT SQL statement in Android
Null Pointer Exception in Android Code
how can I use frames on phone gap and inappbrowser
Android Year Month and Time Zone
Does jayway maven plugin option <manifestVersioncode> really works for Android app?
Intent/action from notification not passed on when user clicks on notification
set orientation portrait phonegap android
Android custum listview layout issue
Android JNI Using Pre built .so file in C Code
Open Activity with backwards to MainActivity in my app

Categories

HOME
asp.net-web-api
beautifulsoup
paraview
polymer
twig
pyqt4
maxscript
pattern-matching
arangodb
openstreetmap
naivebayes
google-form
libc
speech-synthesis
android-intent
heat
do-while
intershop
forgot-password
google-picker
sigma.js
rubymotion
backpack-for-laravel
exit
qliksense
google-api-client
slidetoggle
fable-f#
fractions
tpm
event-flow
anki
powershell-ise
weather
android-gridview
hard-drive
biztalk-rule-engine
indy10
ods
apns-php
cin
trigonometry
placeholder
strftime
xbmc
builder
cnc
reindex
stdmap
context-sensitive-grammar
check-mk
oozie-coordinator
trigger.io
taocp
reporting-services-2012
spring-cloud-feign
nikeplus-api
rspec2
synonym
delta
dimension
lean
observablecollection
riot
turbo-prolog
fink
nio2
jparsec
ascii-art
sciruby
avisynth
doctype
mod-proxy
uncompress
sha512
branch-and-bound
pyobjc
cwrsync
snoop
packet-sniffers
deform
cbind
trdion2011
file-not-found
vbe
qscrollarea
scringo
node-blade
diem
font-awesome-4.0.0
traceability
server-administration
virtual-pc
idn
mkv
multiplexing
stress
jquery-tools
cloudfiles
mtu
aspmenu
ajax-polling
message-passing

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App