Hello,
I currently have a samsung Galaxy S3 running Android 4.0.4.
I am trying to get my head around sockets and Asyncstreams. To test it out i created and installed the following two apps (server and client) on my device.
Since i have only one android device - i know no other way to test..
(ATTACHED PLEASE FIND THE CODE)
I am trying something very simple:
SERVER CODE:
When you click the "start server" button
Server initialize, Server starts listening
Once Client Connects, The contents of "EditText1" are sent
to client through AsyncStreams
(the IP in the code is the same one used by my WIFI for connecting device to B4a bridge)
CLIENT CODE:
When you click the button - client connects to the server IP
Gets the data from AsyncStreams
Displays it in the label
Problem:
Once the server starts and the client tried to connect - i keep getting the following error:
libcore.io.errnoException: isConnected failed: ECONNREFUSED (Connection Refused)
Anyone can please help with what is going wrong?
Thank you!
I currently have a samsung Galaxy S3 running Android 4.0.4.
I am trying to get my head around sockets and Asyncstreams. To test it out i created and installed the following two apps (server and client) on my device.
Since i have only one android device - i know no other way to test..
(ATTACHED PLEASE FIND THE CODE)
I am trying something very simple:
SERVER CODE:
When you click the "start server" button
Server initialize, Server starts listening
Once Client Connects, The contents of "EditText1" are sent
to client through AsyncStreams
(the IP in the code is the same one used by my WIFI for connecting device to B4a bridge)
CLIENT CODE:
When you click the button - client connects to the server IP
Gets the data from AsyncStreams
Displays it in the label
Problem:
Once the server starts and the client tried to connect - i keep getting the following error:
libcore.io.errnoException: isConnected failed: ECONNREFUSED (Connection Refused)
Anyone can please help with what is going wrong?
Thank you!