Reputation: 335
Guys I am trying to make 2 flutter apps that act as server and client. The aim of this server app is that it should be able to pass commands to the client app and the client app should execute them (ex. if server app asks to launch youtube or any other app the client app should accept the command and execute it. and the client app should be able to send acknowledgments to the server app).
I thought of using sockets{tcp/ip} but realized that both the phones should be connected to the same LAN.
Here 'both the phones' meaning => I will keep the server app in one phone and the client app in another phone
Is there any way I can achieve this functionality?
Upvotes: 0
Views: 1473
Reputation: 715
If both apps are to be run in same device then you can take advantage that platform socket [winsocket for windows ] if you need to communicate to different devices then use the online socket tunnel.
but realized that both the phones should be connected to the same LAN
No this is not necessary if you use the socket provider like socket.io. To get started you can head on to socket.io docs
Upvotes: 1