To control your Raspberry Pi remotely you need SSH (Secure Shell). The easiest way to enable SSH:
SSH headless (SSH is enabled at the first boot).
After installing Raspberry Pi operating system image SD card, copy a file called SSH or SSH.TXT onto the root af the SD-Card, at the first boot SSH is enabled. Now you don't need a keybord, mouse or HDMI cable.