I have a simple server that works with sockets and TCP protocol in the console application and there is a client of the Xamarin.Android platform. Can I create a connection to the server from the client? I want to add that my server was originally created along with the console client. They worked well together. In the server I used the TCPlistener class, and in the TCPclient client. But when I wanted to create a version for Xamarin. Android, the application did not work.

  • “Didn't work” is not a very informative description. What exactly was going wrong? I mean, of course, not the behavior of the UI, but in the program - does any method throw an exception? (Then which method and which exception?) Not the return value? (Then from what function, what is expected, what is coming, and why is it wrong?) - VladD
  • First, I would like to understand, you can link these two projects. Can I create a connection and send some text from the client to the server. In my project, when I try to send some text, something happens — S օ cket shut down. - Lilit Aghayan
  • You can, of course, why not? Socket shut down probably means that the socket is either not open or has already been closed. - VladD

0