mikewebb Member Licensed User Longtime User Aug 30, 2013 #1 Greetings from Arkansas !! downloaded this code from this location: http://www.b4x.com/android/forum/threads/problem-with-sockets-asyncstreams.20398/ code is supposed to work but i'm having problems with both of them, all i changed was the ip address and the port number. this is my setup: i have 2 jelly bean phones connected to the same wifi network. one phone 192.168.2.98 in the client. 192.168.2.99 is the server. when start the server program up and press the start server button i get the following error: an error has occured in sub:main_btn_serverclick (java line:293) java.net.bindexception: bind failed: EACCES (permission denied) On the other phone when i start the client program up and i press the test client button i get this error: error connecting libcore.io.errnoexception: isconnected failed: econnrefused (connection refused) seems like i'm missing something real basic here. attached are both programs could someone take a look at it and tell me what i'm doing wrong ? Attachments clientsocket.zip clientsocket.zip 6.8 KB · Views: 460 testsocket.zip testsocket.zip 7.2 KB · Views: 414
Greetings from Arkansas !! downloaded this code from this location: http://www.b4x.com/android/forum/threads/problem-with-sockets-asyncstreams.20398/ code is supposed to work but i'm having problems with both of them, all i changed was the ip address and the port number. this is my setup: i have 2 jelly bean phones connected to the same wifi network. one phone 192.168.2.98 in the client. 192.168.2.99 is the server. when start the server program up and press the start server button i get the following error: an error has occured in sub:main_btn_serverclick (java line:293) java.net.bindexception: bind failed: EACCES (permission denied) On the other phone when i start the client program up and i press the test client button i get this error: error connecting libcore.io.errnoexception: isconnected failed: econnrefused (connection refused) seems like i'm missing something real basic here. attached are both programs could someone take a look at it and tell me what i'm doing wrong ?
mikewebb Member Licensed User Longtime User Aug 31, 2013 #2 hmm, setup a socket server on my windows machine and the b4a client program was able to connect. i guess the problem was with the b4a server. i also changed the port to above 1024. (8888). Upvote 0
hmm, setup a socket server on my windows machine and the b4a client program was able to connect. i guess the problem was with the b4a server. i also changed the port to above 1024. (8888).