Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello,
I want to know how to make a an android tcp client that is going to send the data like an message to a server which is built in visual studio c# using sockets.

What I have tried:

I am trying using sockets in android but unable to do it. Please help ..
Posted
Updated 23-Oct-17 22:52pm
v2

 
Share this answer
 
This is a question that we get most often, in this category.

For example, have a look at the answer that I provided a few weeks ago: Android TCP client and C# visual studio server how to do it.[^].

The thing is you need to understand that Android as well as .NET framework, both support TCP communication, you just need to know how to make them work together — you can make a TCP client on Android and TCP listener (server) on the .NET, and vice versa. The primary thing to learn and understand is the way that a TCP network works. Rest would be simple as both the platforms provide the tools for network programming.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900