It is sometimes necessary to log into the Raspberry Pi remotely from another computer. If the Pi and the computer are on the same network, we can do this as follows:
hostname -I