{"id":17,"date":"2012-07-25T21:11:00","date_gmt":"2012-07-25T21:11:00","guid":{"rendered":"http:\/\/178.62.14.192\/?p=17"},"modified":"2012-07-25T21:11:00","modified_gmt":"2012-07-25T21:11:00","slug":"headless-raspberry-pi-tell-me-my-ip-address","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=17","title":{"rendered":"Headless Raspberry Pi &#8211; Tell me my IP address!"},"content":{"rendered":"<p><strong style=\"background-color: white;\">What is my IP address and can you email it to me?<\/strong><br \/>\nInstructions for getting your IP address emailed to you can be found on the RPi\u00a0<a href=\"http:\/\/elinux.org\/RPi_Email_IP_On_Boot_Debian\" target=\"_blank\">wiki<\/a><br \/>\nIt works. Yay.<\/p>\n<p><span style=\"background-color: white;\"><a href=\"http:\/\/www.raspberrypi.org\/phpBB3\/viewtopic.php?f=26&amp;t=11857\" target=\"_blank\"><strong>What is my IP address, and can you tell it to me?<\/strong><\/a><\/span><br \/>\n<span style=\"background-color: white;\">This is to get the Pi to find it&#8217;s own IP address and tell you vocally over the 3.5mm audio jack.<\/span><br \/>\n<span style=\"background-color: white;\">First of all, you need to install Festival, which is the text-to-speech converter.<\/span><\/p>\n<h2><span style=\"background-color: white;\">Installation<\/span><\/h2>\n<ul>\n<li><span style=\"background-color: white;\">Install the Festival package<\/span>\n<ul>\n<li><span style=\"background-color: white;\">apt-get install festival<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">Install the alsa utilities\/drivers if you do not already have them<\/span>\n<ul>\n<li><span style=\"background-color: white;\">apt-get install alsa-utils<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">Edit \/etc\/modules<\/span>\n<ul>\n<li><span style=\"background-color: white;\">Make sure that<\/span>\n<ul>\n<li><span style=\"background-color: white;\">snd_bcm2835<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">is in the file.<\/span><\/li>\n<li><span style=\"background-color: white;\">Once it is (it might be already) you do not need to do the modprobe again after each reboot.<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">Push audio to the 3.5mm jack<\/span>\n<ul>\n<li><span style=\"background-color: white;\">amixer cset numid=3 1<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">(If you want to put it back to automatic, or HDMI, change it to 0 (auto) or 2 (HDMI))<\/span><\/li>\n<\/ul>\n<h2>Test out your audio<\/h2>\n<ul>\n<li>Do the following:\n<ul>\n<li>su root<\/li>\n<li>cd \/opt\/vc\/src\/hello_pi<\/li>\n<li>.\/rebuild.sh<\/li>\n<li>cd hello_audio<\/li>\n<li>.\/hello_audio.bin<\/li>\n<\/ul>\n<\/li>\n<li>You should hear something like a siren run through a bad 50s sci-fi tv show.<\/li>\n<li><span style=\"background-color: white;\">Let&#8217;s try testing &#8216;aplay&#8217; to see if that works. Use one of the &#8216;alsa&#8217; sample files.<\/span>\n<ul>\n<li><span style=\"background-color: white;\">aplay \/usr\/share\/sounds\/alsa\/Front_Center.wav<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">Yes! It works. Dull, but it works.<\/span><\/li>\n<li><span style=\"background-color: white;\">Install mplayer:<\/span>\n<ul>\n<li><span style=\"background-color: white;\">apt-get install mplayer<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">Edit \/etc\/mplayer\/mplayer.conf. Add the following line:<\/span>\n<ul>\n<li><span style=\"background-color: white;\">nolirc=yes<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<div>\n<ul>\n<li>mplayer \/usr\/share\/sounds\/alsa\/Front_Center.wav<\/li>\n<li><span style=\"background-color: white;\">Yes! Works!<\/span><\/li>\n<\/ul>\n<h2>Try out Festival<\/h2>\n<ul>\n<li><span style=\"background-color: white;\">To make Festival say hello, try this:<\/span>\n<ul>\n<li><span style=\"background-color: white;\">echo &#8220;Hello&#8221; | festival &#8211;tts &amp;<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">YES! It spoke to me!!! Woo-hoo!!!<\/span><\/li>\n<\/ul>\n<h2>The Script and running it<\/h2>\n<\/div>\n<div>\n<ul>\n<li>Return to your root folder:\n<ul>\n<li>cd \/root<\/li>\n<li>mkdir bin<\/li>\n<li>cd bin<\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">Create and edit a file called: say_my_ip_address.sh and use this:<\/span><\/li>\n<\/ul>\n<\/div>\n<div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">#!\/bin\/sh<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\"># First of all, see if you have an IP address yet<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">echo `hostname -I` &gt; \/tmp\/check_ip.out<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">_CHECK_IP=`cat \/tmp\/check_ip.out`<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\"><br \/>\n<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\"># Find the length of the IP address<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">_LEN=`expr length $_CHECK_IP`<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\"><br \/>\n<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\"># Check the length of the IP address and make sure it&#8217;s sensible<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">if [ $_LEN -gt 3 ]; then<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 # Construct your string to push to Festival<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 echo &#8220;&#8221; &gt; \/tmp\/shoutout.tmp<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 echo &#8220;I am, a, Raspberry Pi. My I,P address is. &#8221; &gt;&gt; \/tmp\/shoutout.tmp<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\"><br \/>\n<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 # This is so the IP address is said &#8216;nicely&#8217;<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 for EACH in `hostname -I | grep -o -e &#8220;[^.]*&#8221;`; do<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 for BIT in `echo $EACH | grep -o -e .`; do<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 echo $BIT &gt;&gt; \/tmp\/shoutout.tmp;<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 echo &#8220;. &#8221; &gt;&gt; \/tmp\/shoutout.tmp;<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 done<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 echo &#8220;dot. &#8221; &gt;&gt; \/tmp\/shoutout.tmp;<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 done<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\"><br \/>\n<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 # And a bit of optional retro War Games!<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 echo &#8220;. Would you like to play a game?&#8221; &gt;&gt; \/tmp\/shoutout.tmp<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 cat \/tmp\/shoutout.tmp | festival &#8211;tts<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 rm \/tmp\/shoutout.tmp<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 rm \/tmp\/check_ip.out<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">else<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 # If the IP address is not valid, report vocally and delayed re-run<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 echo &#8220;I do not yet have an I,P address&#8221; | festival &#8211;tts<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 sleep 5<\/span><\/div>\n<div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">\u00a0 \u00a0 \u00a0 \u00a0 \/root\/bin\/say_my_ip_address.sh 2&amp;&gt;\/dev\/null<\/span><\/div>\n<div><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">fi<\/span><\/div>\n<div><span style=\"background-color: white;\"><br \/>\n<\/span><\/div>\n<div><span style=\"background-color: white;\">(All those fullstops and commas space out the words so it sounds like an IP address!)<\/span><\/div>\n<\/div>\n<\/div>\n<div>\n<ul>\n<li>Save and quit.<\/li>\n<li>Make the file executable:\n<ul>\n<li><span style=\"background-color: white;\">chmod a+x say_my_ip_address.sh<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"background-color: white;\">Edit \/etc\/rc.local<\/span><\/li>\n<li>Add the following lines:<\/li>\n<\/ul>\n<div>\n<div><span style=\"background-color: white;\"><span style=\"font-family: 'Courier New', Courier, monospace; font-size: x-small;\">sudo -u root \/root\/bin\/say_my_ip_address.sh &amp;&gt;\/dev\/null<\/span><\/span><\/div>\n<\/div>\n<\/div>\n<div>\n<ul>\n<li>And reboot<\/li>\n<li>Don&#8217;t forget to have your earphones plugged in!<\/li>\n<\/ul>\n<div><\/div>\n<\/div>\n<div class=\"blogger-post-footer\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com\" alt=\"\" width=\"1\" height=\"1\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>What is my IP address and can you email it to me? Instructions for getting your IP address emailed to you can be found on the RPi\u00a0wiki It works. Yay. What is my IP address, and can you tell it&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=17\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[42,51],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Headless Raspberry Pi - Tell me my IP address! - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=17\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Headless Raspberry Pi - Tell me my IP address! - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"What is my IP address and can you email it to me? Instructions for getting your IP address emailed to you can be found on the RPi\u00a0wiki It works. Yay. What is my IP address, and can you tell it&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=17\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-25T21:11:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Headless Raspberry Pi &#8211; Tell me my IP address!\",\"datePublished\":\"2012-07-25T21:11:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17\"},\"wordCount\":586,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com\",\"articleSection\":[\"Raspberry Pi Foundation\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=17#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17\",\"name\":\"Headless Raspberry Pi - Tell me my IP address! - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com\",\"datePublished\":\"2012-07-25T21:11:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=17\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17#primaryimage\",\"url\":\"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com\",\"contentUrl\":\"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=17#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Headless Raspberry Pi &#8211; Tell me my IP address!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Headless Raspberry Pi - Tell me my IP address! - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=17","og_locale":"en_US","og_type":"article","og_title":"Headless Raspberry Pi - Tell me my IP address! - Raspberry Pi Pod","og_description":"What is my IP address and can you email it to me? Instructions for getting your IP address emailed to you can be found on the RPi\u00a0wiki It works. Yay. What is my IP address, and can you tell it&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=17","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2012-07-25T21:11:00+00:00","og_image":[{"url":"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Headless Raspberry Pi &#8211; Tell me my IP address!","datePublished":"2012-07-25T21:11:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17"},"wordCount":586,"commentCount":6,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17#primaryimage"},"thumbnailUrl":"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com","articleSection":["Raspberry Pi Foundation","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=17#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17","url":"https:\/\/www.recantha.co.uk\/blog\/?p=17","name":"Headless Raspberry Pi - Tell me my IP address! - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17#primaryimage"},"thumbnailUrl":"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com","datePublished":"2012-07-25T21:11:00+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=17"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17#primaryimage","url":"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com","contentUrl":"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-8189750853011847641?l=raspberrypipod.blogspot.com"},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=17#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Headless Raspberry Pi &#8211; Tell me my IP address!"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-h","jetpack-related-posts":[{"id":16,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16","url_meta":{"origin":17,"position":0},"title":"Command Line experiments","author":"Michael Horne","date":"25 July 2012","format":false,"excerpt":"Trying a few things out on my Pi from various blogs. NB: this is a stream-of-consciousness experimentation post. I will re-post the most exciting part (text-to-speech) in another part, all cleaned up! RPi Blog\u00a0-\u00a0Optimizing for a headless install Now, I do use the desktop environment, so not doing the first\u2026","rel":"","context":"In &quot;Raspberry Pi Foundation&quot;","block_context":{"text":"Raspberry Pi Foundation","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=42"},"img":{"alt_text":"","src":"https:\/\/blogger.googleusercontent.com\/tracker\/3715640409195873782-933926479133837939?l=raspberrypipod.blogspot.com","width":350,"height":200},"classes":[]},{"id":18463,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=18463","url_meta":{"origin":17,"position":1},"title":"Working with an SSD1306 0.96&#8243; OLED display on the Raspberry Pi","author":"Michael Horne","date":"12 March 2018","format":false,"excerpt":"I'm always on the lookout for cheap electronics on eBay and AliExpress. Following on from my previous tutorial on HD44780 screens, this time, I found a small OLED display. I bought one of these\u00a0from eBay for less than \u00a35 plus postage. It is a 0.96\", 128x64 pixel OLED display. These\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/oled_demo_sm.jpg?fit=1200%2C809&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/oled_demo_sm.jpg?fit=1200%2C809&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/oled_demo_sm.jpg?fit=1200%2C809&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/oled_demo_sm.jpg?fit=1200%2C809&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2018\/03\/oled_demo_sm.jpg?fit=1200%2C809&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":17877,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=17877","url_meta":{"origin":17,"position":2},"title":"Physical computing from a PC or Mac using a Raspberry Pi Zero","author":"Michael Horne","date":"4 December 2017","format":false,"excerpt":"Gordon Hollingworth, over at Raspberry Pi, has just blogged an exciting new development that means you can now use a Raspberry Pi Zero's GPIO pins from your PC or Mac. You'll need to install Raspbian x86 Stretch\u00a0on the non-Zero machine first. Now it\u00a0looks like you don't need an SD card\u2026","rel":"","context":"In &quot;Networking&quot;","block_context":{"text":"Networking","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=33"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/12\/IMG_20171127_164539-500x375.jpg?fit=500%2C375&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":15,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=15","url_meta":{"origin":17,"position":3},"title":"Installing Raspcontrol","author":"Michael Horne","date":"25 July 2012","format":false,"excerpt":"I subscribe to a lot\u00a0of Blogs for the Raspberry Pi. The newest post that I came across was Jacob Clark's Raspcontrol. He's developed a web-based control panel for headless Pis, so you can see what Pi is doing remotely without going anywhere near a sh terminal or VNC! Installation First\u2026","rel":"","context":"In &quot;Raspberry Pi Foundation&quot;","block_context":{"text":"Raspberry Pi Foundation","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=42"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/1.bp.blogspot.com\/-8tOKMjefcq8\/UA_RVByobwI\/AAAAAAAAAWc\/lToEYWzCZLo\/s320\/loginscreen.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":17517,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=17517","url_meta":{"origin":17,"position":4},"title":"Raspbian Stretch has changed the names of network interfaces on your Raspberry Pi","author":"Michael Horne","date":"20 August 2017","format":false,"excerpt":"James was trying to allocate a static IP address to his Pi. He did what he'd always done and allocated the static address to eth0 but was then bewildered as to why it wasn't working. He discovered that the naming convention for network interfaces has changed in the new version\u2026","rel":"","context":"In &quot;Networking&quot;","block_context":{"text":"Networking","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=33"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/08\/ethernet.png?fit=400%2C400&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":6174,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=6174","url_meta":{"origin":17,"position":5},"title":"WordPress for #RaspberryPi using Nginx and MySQL","author":"Michael Horne","date":"28 September 2013","format":false,"excerpt":"I'm just setting up a new blog for the Cambridge Raspberry Jam. :-) I've managed to install Wordpress on a rev 1 256mb Raspberry Pi using Nginx as the web server and MySQL as the back end. This was accomplished by following the tutorial on CNXSoft:\u00a0Wordpress for Raspberry Pi using\u2026","rel":"","context":"In &quot;Software&quot;","block_context":{"text":"Software","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=49"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}