You can use your Raspberry Pi™ hardware in one of the following configurations:
Monitor and keyboard attached
Headless (no monitor or keyboard)
If your Raspberry Pi hardware is connected to a keyboard and monitor, you can find the IP address of the board. To do so, open a Linux® shell, and enter:
The ifconfig command lists the network information for all Ethernet interfaces on your board. For example:
eth0 Link encap:Ethernet HWaddr b8:27:eb:63:40:b8 inet addr:172.28.145.190 Bcast:172.28.145.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27224 errors:0 dropped:0 overruns:0 frame:0 TX packets:733 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2801074 (2.6 MiB) TX bytes:107019 (104.5 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
The wired Ethernet connection on your Raspberry Pi hardware corresponds to eth0 network interface. The IP address of eth0 is listed in the inet addr field.
If you are using your Raspberry Pi hardware in headless configuration, there are several ways to find the IP address:
Raspberry Pi configured to automatically obtain IP address using DHCP — You can communicate with your board using the host name you assigned to the board during the firmware update process. This approach does not work if you configured your board to use a static IP address.
For example, if the board is named raspberrypi-ah, enter the following in a MATLAB® Command Window:
h = raspberrypi(‘raspberrypi-ah') h.openShell(‘ssh')
A feature called speak IP, which MathWorks® software adds to Raspian Wheezy. This feature speaks the IP address of the Raspberry Pi hardware at boot time, just after acquiring an IP address. To hear the IP address, connect headphones to the Audio Output port when booting the board.
Configure Raspberry Pi hardware to use Dynamic DNS (DDNS) — Dynamic DNS is a method of updating the Domain Name System to point to a changing IP address on the Internet. Dynamic DNS requires a DDNS server. DDNS services, such as the ones provided by dnsdynamic.org, are available from the Internet. Instructions for setting up a dynamic DNS client on Raspberry Pi hardware can be found on Internet.
Configure the board to send you an email message when the IP address changes — See Configure Raspberry Pi Hardware to Mail IP Address Changes.