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

Proguard obfuscation giving database is locked error
Android Volley with Image Caching
Android alpha testing “Item not found”
Retrieving images using its path from server to android app
RecyclerView notifyItemChanged Prevent Scroll [duplicate]
Google Analytics doesn't report Real-time Android
Edit text integer
Titanium Alloy crash on android, Cannot call method 'open' of undefined
Native components, armeabi-v7a, and thumb?
Checkbox getting deselected in arrayadapter in listview
Android: member variable becoming null
How to detect color of the center of camera streaming in android without OpenCV
Missing App Icon after modifying Manifest
Save Image from res/drawable to Image Gallery Android
SQL lite select for actual week (from monday till sunday)
how to get imageview height and width after pinch zoom?

Categories

HOME
shell
asp.net-web-api
search
css3
phpmyadmin
object
rsa
swt
socket.io
knitr
tivoli
scripting
cq5
gluon-mobile
webix
title
special-characters
teechart
drop-down-menu
symbol
altera
parameter-passing
video-editing
bourbon
dataflow-diagram
tosca
zxing
comparator
dynamically-generated
strongname
perlbrew
onload
google-cloud-print
corpus
calculation
python-import
apiary.io
node-mssql
metawidget
resolution
escpos
dapper-simplecrud
snapchat
xbmc
opennms
dtsearch
rserve
mongotemplate
stdmap
java-bytecode-asm
boxing
jqchart
d3-force-directed
rxtx
smartfoxserver
cronexpression
pure-css
omxplayer
vulcanize
mta
nservicebus5
kango-framework
phpwebsocket
yajsw
lz77
nupic
nio2
inf
character-replacement
lazybones
intel-c++
ons-api
zen-cart
android-launcher
viola-jones
haskell-warp
liquid-layout
kubuntu
jquery-forms-plugin
diff3
user-permissions
android-vibration
browserify-shim
crowd
kissfft
reflector
malformedurlexception
paste
vbe
isqlquery
rolify
neos-server
workitem
epiceditor
composite-component
insert-id
monotouch.dialog
web-farm
faye
koken
u2netdk
mysql-error-1205
exponentiation
strsep
xui
tabpanel
pos-for-.net
int64

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