[Rpi/OSX] How to connect Pi via LAN cable to OSX based machine

I spent some time on this problem so as usually I decided to share my solution.

First of all update your packets.

sudo apt-get update

sudo apt-get upgrade

Then install this one:

sudo apt-get install avahi-daemon

Once the installation process is complete, you don’t even have to reboot the device. Your Raspberry Pi will begin immediately recognizing local network queries for its hostname (by default “raspberrypi“) at raspberrypi.local.

Ok. Now it’s time to set up our mac.

Go to Settings -> Sharing
Make sure that ‘internet sharing’ is ticked and in ‘computers using’ section tick ‘Ethernet’ or ‘ Thunderbolt ethernet’.

Sharing settings

Connect your pi via LAN cable and power it on.
Now go to Settings -> network and make sure your Ethernet/ Thunderbolt ethernet connection has IPv4 configured ‘using DHCP’.

Network settings

Now type in this command:

ping raspberrypi.local

And you should get output like this
Screen Shot 2015-04-12 at 19.11.46

Now we have our pi’s local ip so we can try to connect to it via SSH.

ssh pi@ 

I hope this tutorial helped you 😉

Published by


Programmer, designer and dubstep listener.

3 thoughts on “[Rpi/OSX] How to connect Pi via LAN cable to OSX based machine”

Leave a Reply

Your email address will not be published. Required fields are marked *