Category : sockets

I want to directly implement a large amount of message communication between two Android clients, using Socket connection directly, I know it is possible. I have two questions -Two Android devices can use the Netty library? -What other solutions are there? Any Suggestion will help! is there IO lib for android network ,i just know ..

Read more

I’m trying to establish a connection between the server and android for a chat application. When I run the app and try to connect to the server, Unfortunately, it always returns a connection error. I’m using Socket.io. Any help would be highly apprieciated. GRADLE compileOptions { targetCompatibility 1.8 sourceCompatibility 1.8 } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 ..

Read more

I have trouble with connecting to a server from Android Studio. Always getting this error: Error creating KNXnet/IP tunneling link: tuwien.auto.calimero.KNXException: connecting from /192.168.163.198:3671 to /192.168.10.13:3671: socket failed: EPERM (Operation not permitted) I’ve checked this posts Socket failed 1 Socket failed 2 Tried everything there, added permissions to my AndroidManifest.xml, uninstalled, used physical phone etc. ..

Read more

I am trying to build a client for a wifi device as server. I am using ktor-network client docs as a reference where it shows client implementation as follow which is so straight forward. fun main(args: Array<String>) { runBlocking { val socket = aSocket(ActorSelectorManager(Dispatchers.IO)).tcp().connect(InetSocketAddress("127.0.0.1", 2323)) val input = socket.openReadChannel() val output = socket.openWriteChannel(autoFlush = true) ..

Read more