No you don't need extra hardware. The only requirement is that they both be connected on a local network and one of the two is the mouse/keyboard server and the other is the client.
Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.