2
I would like to know where to start studying to create an app that works on a local network. I have a version of this App that works using Firebase with my online database. I wanted now to do something similar but locally, with Wifi only Wireless LAN, where you can establish socket connections. This should work also on any LAN network. Is there any way to do this using the internal bank of android? Like, make one of the devices the server with the database while the others serve as clients? How can I do this to send data like numbers or strings?
Remembering that my goal is to do this between Android Smartphones, without using another PC(notebook and etc) as server.
Thanks in advance.
Possible duplicate of How to make an application available only on my wireless network?
– NoobSaibot
Other than what exists here on the site I have interest that the application communicate in any LAN that is connected and not only and a specific LAN network.
– Jonathas Henrique
I think it’s too wide. I’d have to do it in pieces. A device would be the server, with an open door, and clients would sweep the network for it. What I’ve seen done is the server display on the screen the IP in which it is and this IP to be configured in clients.
– Piovezan
I’ve done a lot of research and found the solution. For the people who arrived here looking for how to do something like this on android, follow the link: https://androiddevsimplified.wordpress.com/2016/09/12/local-networking-using-nsd-network-service-discovery/
– Jonathas Henrique