Client — server application on Xamarin?


Network topics are only beginning to understand, asking stupid questions and asking for advice as much as possible, and better to do.
Thank you for understanding.

Going to create an app on the phone. I will write on the xamarin platform.
The app is a game stickers, which will play several people, each with their own phone. Each user's phone connected to the same wi-fi network and sees all users running the application and other information.

Actually, I originally planned to run the server on a PC in the same wi-fi network and work with the connected phone(as it is all to do don't know going to find out).
I did a little test Xamarin, created an application launched on the phone. A little test ASP .NET MVC. In General, the knowledge goal.

I would like to know, is it possible to create client-server application on xamarin, without a server on PC and at least approximately how. Link to article on step by step solution with the most minimal implementation. Well, in General, to give direction, more specific than I have now.

The above technology was going to use because working on at the moment in c#.

Thank you.
April 3rd 20 at 18:33
2 answers
April 3rd 20 at 18:35
If there are no requirements for offline work, you can use firebase

if you want purely within your local network then try this

The code for the re-election of the master in the network will have to write yourself
ie, with the help of a Simple Http Listener PCL on the "main" phone I will be able to register the connection of other phones? - maymie.Grah commented on April 3rd 20 at 18:38
@maymie.Grah, In General, Yes. It remains to determine who is in the network and how to announce the wizard.
Here's an example

remained to implement the election of the master and the announcement to clients.

But as I wrote above it is better to do based on firebase. At least until the data exchange.
Another option is the manual announcement of servers and storing a list of addresses for a specific wifi network - kassandra9 commented on April 3rd 20 at 18:41
@kassandra9, okay, thank you. Note a decision to believe in the solution) - maymie.Grah commented on April 3rd 20 at 18:44
April 3rd 20 at 18:37
> Client-server application on xamarin, without a server on PC.

Little paragraphs are mutually exclusive. Or you principle to not on PC? And what, then? Theoretically, the server can be on the tablet Hooch, Hooch on your smartphone to deploy. But it is not clear why such requirements.
The server wanted to expand on one of the connected phones. Well, let it be something of the mode of the administrator. That is 8 phones connected to the network and one of those 8 phones sends information to the rest of the 7 phones. - maymie.Grah commented on April 3rd 20 at 18:40
Not that fundamentally, I wanted to write to us with your friends this app to somewhere on the street to run and play. - maymie.Grah commented on April 3rd 20 at 18:43
@maymie.Grah, M an interesting concept.
Essentially you need to write an application which can simultaneously act and host and the client. As in the old games, with the feature "create room" and the "connect to room".
You can use this internal ip address.
Digging can begin in the direction of how the tcp/ip Protocol. And then have to look ready implementation .Net framework - Samara_Seng commented on April 3rd 20 at 18:46
@Samara_Seng, thank you. Yes, I just habré yesterday I read an article about the protocols, fundamentals of TCP/IP for future Amateurs - maymie.Grah commented on April 3rd 20 at 18:49

Find more questions by tags C#Xamarin