10 miles was no problem but the main difference was I had both ends. One was setup on land with a high speed connection and the other was on the quarter boat.
I set one up using aeronet but that was some time back. Linksys routers will work just as well now. As stated the coax needs to be short. That's why mine was a router in an enclosure that went up on the tower. This keeps the coax very short. The power and network cable run from the computer. The antenna was a Yagi directional and the control was a radio
shack tv antenna controller.
The land tower was 60' and the spud tower on the barge was about 40'. Line of sight is critical. Other than line of sight the atmosphere is a limiting factor.
A dish type antenna is better than a yagi but it depends on the distance you need.
1 watt works 11,000 miles without a problem but that's from ground to space.
Now I use a print / game
server device that has an external connection for the directional antenna. Works good for connecting to local wifi
but 5 miles is not possible with the antenna I have. A dish would need to be added I think.