How to capture game in real time?

Yes, I want to record the game and send it via Wi-Fi to another place using a router as a local network