Communication between Android and PC (C #)

I want to create an Android application that communicates with a server application (written in C #, it does not matter which version of .NET) is on the PC via TCP / IP. What would be the best approach here?

I was thinking of some kind of RPC-like SOAP or XML-RPC. But I want the server application to be as simple and easy as possible. And I think in C # you rely on a web server to configure your RPC server. Is it better to communicate directly through TcpListener?

+4
source share
2 answers

I was very lucky using TCP / IP and UDP with Android and Windows (Java and C #, respectively). I used a more brutal approach than TCPListener for C #, but pretty similar at a high level. I would recommend giving him a chance and seeing the result, most likely it will be quite easy in terms of processing and bandwidth, and then using the XML approach.

0
source

What data will be transmitted by your program over the network? If this is something simple, why not use a high-level protocol like http? I am more of a java person, but I know that there must be an .net equivalent for running a lean HTTP server to connect.

0
source

All Articles