{"id":9763,"date":"2024-03-25T11:33:22","date_gmt":"2024-03-25T11:33:22","guid":{"rendered":"https:\/\/www.bairesdev.com\/tools\/tessel\/?p=9763"},"modified":"2024-05-09T11:05:58","modified_gmt":"2024-05-09T11:05:58","slug":"lan-discovery","status":"publish","type":"post","link":"https:\/\/www.bairesdev.com\/tools\/tessel\/docs\/lan-discovery\/","title":{"rendered":"LAN Discovery"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_66_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.bairesdev.com\/tools\/tessel\/docs\/lan-discovery\/#Introduction_to_MDNS\" title=\"Introduction to MDNS\">Introduction to MDNS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.bairesdev.com\/tools\/tessel\/docs\/lan-discovery\/#An_issue_with_detection\" title=\"An issue with detection\">An issue with detection<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.bairesdev.com\/tools\/tessel\/docs\/lan-discovery\/#OSX\" title=\"OSX\">OSX<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.bairesdev.com\/tools\/tessel\/docs\/lan-discovery\/#Linux\" title=\"Linux\">Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.bairesdev.com\/tools\/tessel\/docs\/lan-discovery\/#An_issue_with_network_configuration\" title=\"An issue with network configuration\">An issue with network configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.bairesdev.com\/tools\/tessel\/docs\/lan-discovery\/#An_issue_with_advertisement\" title=\"An issue with advertisement\">An issue with advertisement<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"introduction-to-mdns\"><span class=\"ez-toc-section\" id=\"Introduction_to_MDNS\"><\/span>Introduction to MDNS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Tessel 2\u00a0CLI\u00a0is able to detect Tessel 2s on the same wireless network as your host computer using a protocol called\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Multicast_DNS\" target=\"_blank\" rel=\"noreferrer noopener\">mDNS<\/a>. If you run\u00a0<code>t2 list<\/code>\u00a0and don&#8217;t see your Tessel labeled\u00a0LAN\u00a0like the example below, then either the Tessel is not advertising properly, your wifi network infrastructure blocks\u00a0mDNS\u00a0traffic, or your computer is not picking it up properly.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u279c  t2 list\nINFO Searching for nearby Tessels...\n  Frank LAN\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"an-issue-with-detection\"><span class=\"ez-toc-section\" id=\"An_issue_with_detection\"><\/span>An issue with detection<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, you should confirm your host machine is on the same wifi network as your Tessel. You can run&nbsp;<code>t2 wifi<\/code>&nbsp;to get the network your Tessel 2 is connected to. If it&#8217;s not connected, you&#8217;ll need to do that and run&nbsp;<code>t2 list<\/code>&nbsp;again.<\/p>\n\n\n\n<p>Next, let&#8217;s check if your computer is able to detect the Tessel at all (to determine if it&#8217;s an issue with the\u00a0CLI\u00a0or with the Tessel). We&#8217;ll use a utility that we absolutely know works.<\/p>\n\n\n\n<p><em>I only have an example for OSX &#8211; if you know how to do\u00a0mDNS\u00a0discovery on Windows, please add to this file and submit a PR!<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"osx\"><span class=\"ez-toc-section\" id=\"OSX\"><\/span>OSX<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>dns-sd -B _tessel._tcp .\n<\/code><\/pre>\n\n\n\n<p>This tells the&nbsp;<code>dns-sd<\/code>&nbsp;(DNS Service Discovery) tool to start searching for any devices advertising as a&nbsp;<code>_tessel._tcp<\/code>&nbsp;device. If your device doesn&#8217;t show up in the results, then it is an issue with detection, then your computer isn&#8217;t detecting it up properly.<\/p>\n\n\n\n<p>There is also issue a peculiar but uncommon issue where OSX just stops picking up the advertisements for some reason. The cause is unknown thus far but you can fix it with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo killall -HUP mDNSResponder\n<\/code><\/pre>\n\n\n\n<p>This command basically clears the cache of\u00a0mDNS\u00a0devices so the next time you run the\u00a0<code>dns-sd<\/code>\u00a0utility or\u00a0<code>t2 list<\/code>, Tessel will show up (if this was the root cause).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"linux\"><span class=\"ez-toc-section\" id=\"Linux\"><\/span>Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>avahi-browse _tessel._tcp -t\n<\/code><\/pre>\n\n\n\n<p>This displays a list of DNS-SD entries that match _tessel._tcp and quits afterwards.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"an-issue-with-network-configuration\"><span class=\"ez-toc-section\" id=\"An_issue_with_network_configuration\"><\/span>An issue with network configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Attempts to connect to your Tessel 2 via a network that is configured to block\u00a0mDNS\u00a0traffic will always fail. This type of configuration is often used for secured company networks and open public networks to prevent unwanted peer-to-peer discovery and access. If this is your home network, change the configuration via the router&#8217;s administration control panel. If this is a network that you do not control, you may have to request the change from an IT department (or similar resource).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"an-issue-with-advertisement\"><span class=\"ez-toc-section\" id=\"An_issue_with_advertisement\"><\/span>An issue with advertisement<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To determine if it&#8217;s an issue with Tessel not advertising properly, you&#8217;ll need to get\u00a0root access\u00a0to your Tessel. Then run\u00a0<code>ps<\/code>\u00a0to check if the\u00a0mDNS\u00a0service is actually running on Tessel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> 1259 root       904 S    dns-sd -R Frank _tessel._tcp local 22\n<\/code><\/pre>\n\n\n\n<p>If you don&#8217;t see this service running (note that the name of your Tessel will be different), you can restart it with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/etc\/init.d\/tessel-mdns restart\n<\/code><\/pre>\n\n\n\n<p>Once it&#8217;s restarted, check if it&#8217;s running with the&nbsp;<code>dns-sd<\/code>&nbsp;utility on your host machine or&nbsp;<code>t2 list<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to MDNS The Tessel 2\u00a0CLI\u00a0is able to detect Tessel 2s on the same wireless network as your host computer using a protocol called\u00a0mDNS. If you run\u00a0t2 list\u00a0and don&#8217;t see your Tessel labeled\u00a0LAN\u00a0like the example below, then either the Tessel is not advertising properly, your wifi network infrastructure blocks\u00a0mDNS\u00a0traffic, or your computer is not picking [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,4],"tags":[],"class_list":["post-9763","post","type-post","status-publish","format-standard","hentry","category-debugging","category-docs"],"_links":{"self":[{"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/posts\/9763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/comments?post=9763"}],"version-history":[{"count":2,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/posts\/9763\/revisions"}],"predecessor-version":[{"id":10101,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/posts\/9763\/revisions\/10101"}],"wp:attachment":[{"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/media?parent=9763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/categories?post=9763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/tags?post=9763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}