The plugin you need to easily create multiplayer games and apps that work locally thanks to UNET and globally thanks to Sockets. Use the same code and forget about the connection.
In the next playlist you will find the information you need to create a multiplayer game:
https://www.youtube.com/playlist?list=PLPtjK_bez3T5Bxb-TRUW5hYNjriPVhE_C