ARW was thinking very hard :
I think those wifi sockets use mains signalling, so unlikely to work outside the same property.
Make a pair of these -
then modify a suitable pair of wifi routers, to use the yagi antennas in place of the built in antennas and you will have a system able to provide a link over several miles LOS.