{"id":1941,"date":"2015-05-28T07:07:33","date_gmt":"2015-05-28T07:07:33","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=1941"},"modified":"2018-05-15T18:33:00","modified_gmt":"2018-05-15T18:33:00","slug":"networking","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/command-line\/networking","title":{"rendered":"Networking"},"content":{"rendered":"<h4>\nMore Networking Things<br \/>\n<\/h4>\n<p>\nOur Raspbian specific networking stuff is here:&nbsp;<a href=\"https:\/\/raspberry-projects.com\/pi\/category\/pi-operating-systems\/raspbian\/network-settings\">https:\/\/raspberry-projects.com\/pi\/category\/pi-operating-systems\/raspbian\/network-settings<\/a>\n<\/p>\n<h4>\nIP Address<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nip addr\r\n<\/code><\/pre>\n<h4>\nIs A Specific Interface Connected<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nip link show wlan0\r\n<\/code><\/pre>\n<h4>\nWiFi<br \/>\n<\/h4>\n<h5>\nList discovered networks<br \/>\n<\/h5>\n<pre>\r\n<code>\r\nsudo iwlist wlan0 scan\r\n<\/code><\/pre>\n<h5>\nIs network connected<br \/>\n<\/h5>\n<pre>\r\n<code>\r\nifconfig wlan0\r\n<\/code><\/pre>\n<p>\nIf the inet addr field has an address beside it, the RPi has connected to the network.&nbsp;\n<\/p>\n<h5>\nGet connected network SSID<br \/>\n<\/h5>\n<pre>\r\n<code>\r\niwgetid wlan0 -r\r\n<\/code><\/pre>\n<p>\nWill return just the SSID, or blank if not connected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>More Networking Things Our Raspbian specific networking stuff is here:&nbsp;https:\/\/raspberry-projects.com\/pi\/category\/pi-operating-systems\/raspbian\/network-settings IP Address ip addr Is A Specific Interface Connected ip link show wlan0 WiFi List discovered networks sudo iwlist wlan0 scan Is network connected ifconfig wlan0 If the inet addr field has an address beside it, the RPi has connected to the network.&nbsp; Get connected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-1941","post","type-post","status-publish","format-standard","hentry","category-command-line"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=1941"}],"version-history":[{"count":7,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1941\/revisions"}],"predecessor-version":[{"id":2906,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1941\/revisions\/2906"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=1941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=1941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=1941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}