Hi Nieves,
It is possible to a built-in wifi transceiver of the computer.
Basically, you need to have communication medium between those two devices.
That's wireless or wired.
The computer you want to access needs to be connected either of these media of communications.
Hope it helps
Best,
Neil