Setup a network multiple laptops

I need to connect the Companion computer to a router and connect two laptops to it, in which one runs Qground for controlling the vehicle and the other laptop streams the cameras vision for piloting along with running python “OpenCV”. if any would help with the steps for solving this problem.
please note I wont be using cameras supporting H.264 instead a usual webcams that i hope to see stream.
Thanks in advance