How to send a message from your phone to your computer?

The question how to send email from your phone ( app on xamarin android) to the computer on the same network the Internet.
Used the Wikipedia code from them, but nothing came of it, I'm sure I'm doing something wrong.
https://metanit.com/sharp/net/4.1.php
https://metanit.com/sharp/net/4.2.php
On a single computer running exchange of messages between programs.

And tell me what to do to use tcp, udp, http ?

In the future, you need to send a picture from phone to computer.
April 3rd 20 at 17:34
2 answers
April 3rd 20 at 17:36
start with the ping

ping is the most reliable way to check network or not

disabled firewall, Avast and other crap
April 3rd 20 at 17:38
it is easier to raise the http server on the computer and chat with him there and download files from the box, but this solution loses in speed to the others.
tcp/udp is a good solution, but you will need to implement my own Protocol for communication and configure the computer with the right ports for communication. Can also try the solution with websocket Protocol (over tcp)

Find more questions by tags AndroidComputer networksNetwork equipmentC#