2

I'm trying to set up my new-to-me Raspberry Pi (Raspbian Jessie( in a headless manner. I've got the Pi connected to my Mac by an ethernet cable. I am able to login via ssh, but it seems that its IP chances every time I disconnect and reconnect the Pi. I can rediscover the IP using arp -a | grep "b8:27:eb, then use that IP address to ssh in to the Pi.

This is not a viable long term solution for me and I'd have thought that a changing IP would be avoided by connecting the Pi directly to my laptop. In any case it appears that most people have their systems set up so that their Pi is always found on a single IP. I've not found the various 'Static IP' tutorials useful in solving this issue as I am not currently trying to access the Pi through the internet, nor am I connecting to it through my router.

In my System Preferences > Network (MacOS 10.10), I have tried using DHCP and DHCP with manual address. Neither provides an unchanging IP address through which I can login to my Pi, however.

I greatly appreciate any assistance in setting things up so I don't have to keep re-discovering my Pi's IP.

Many thanks, -R

ramesesjd
  • 123
  • 3

1 Answers1

6

You can easily connect from OS X with ssh pi@hostname.local (the default hostname is raspberrypi). This works without a conventional IP address (it uses link-local address).

If you are directly connecting the Pi to a computer it generally won't get an IP address, unless you have implemented Internet Connection Sharing on the host (which causes other problems).

See How do I set up networking/WiFi/Static IP for more detail.

Milliways
  • 62,573
  • 32
  • 113
  • 225