This question already has an answer here:
I would like to network a farm building which is 500' from my house. There are lots of trees between the two, so I doubt that wifi would work. 300' is the max length for Cat 5 ethernet cable.
What are my options? I could have a small solar panel and battery at the other end for power, but I don't have mains power there.
If there is a cabled solution I can trench to there and run cable through conduit.