{"id":54,"date":"2014-04-26T14:51:27","date_gmt":"2014-04-26T13:51:27","guid":{"rendered":"http:\/\/www.domkat.net\/?p=54"},"modified":"2014-07-23T22:53:36","modified_gmt":"2014-07-23T21:53:36","slug":"how-to-intellidrive-controller-and-ipd-in-different-networks","status":"publish","type":"post","link":"https:\/\/www.domkat.net\/?p=54","title":{"rendered":"How-to: IntelliDrive Controller\u2122 and IPD\u2122 in different networks"},"content":{"rendered":"<p>This is <strong>not<\/strong> an official how-to by Lab.gruppen. IntelliDrive Controller and IPD are trademarks of Lab.gruppen AB.<\/p>\n<p><strong>Abstract<\/strong><br \/>\nIf you operate your IntelliDrive Controller and IPD in different networks, they won&#8217;t connect &#8216;out-of-the-box&#8217;. We will see why and how to bypass this.<\/p>\n<p><strong>Connection Mechanism<\/strong><br \/>\nThe connection mechanism of the IntelliDrive Controller and the IPD is as follows:<\/p>\n<ol>\n<li>IPD sends UDP broadcasts to 255.255.255.255:50674<\/li>\n<li>IntelliDrive Controller establishes a TCP connection to the IPD on port 50675 after reception of one of the broadcast packets<\/li>\n<li>The TCP connection remains established until the IntelliDrive Controller is shut-down\/restarted.<\/li>\n<\/ol>\n<p>Since broadcast packets are not routed, the mechanism above only works when both devices are connected to the same network. However, this is not always the case. In my setup e.g. the LAN and WLAN are separated and connected through a gateway router (i.e. IPD on LAN and iPad on WLAN).<\/p>\n<p><strong>Workaround<\/strong><br \/>\nThe following steps have to be done to get it running:<\/p>\n<ol>\n<li>\u00a0Create a script\/program that listens on port 50674 for incoming UDP packets on the network where your IPDs are and forwards these packets as unicasts to your IntelliDrive Controller device (unicasts will be routed through the gateway)<\/li>\n<li>Make sure your gateway will forward and not block UDP traffic on port 50674 to the destination network (where your IntelliDrive device is)<\/li>\n<li>Change the source IP of the UDP packet to the IP of your IPD (SNAT), because the IP of the IPD is not part of the payload of the packet, but the IntelliDrive Controller will connect to the source IP address of\u00a0 the UDP packet<\/li>\n<li>Make sure your gateway will forward and not block TCP traffic on port 50675 to the network where your IPDs are located<\/li>\n<\/ol>\n<p><strong>Note<\/strong><br \/>\nI am already in contact with Lab.gruppen support about this issue. I hope they will add a feature to the IntelliDrive Controller to enable the operator to manually add devices without the need of an initial reception of a broadcast packet sent by the IPD. And maybe it will also be possible to stop the IPD from sending broadcasts all the time (I don&#8217;t like that).<\/p>\n<p>Questions, comments? Drop your feedback!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is not an official how-to by Lab.gruppen. IntelliDrive Controller and IPD are trademarks of Lab.gruppen AB. Abstract If you operate your IntelliDrive Controller and IPD in different networks, they won&#8217;t connect &#8216;out-of-the-box&#8217;. We will see why and how to &hellip; <a href=\"https:\/\/www.domkat.net\/?p=54\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[7,9,6,5,8],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","category-audio","category-electronics","tag-intellidrive","tag-ipad","tag-ipd","tag-lab-gruppen","tag-network"],"_links":{"self":[{"href":"https:\/\/www.domkat.net\/index.php?rest_route=\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.domkat.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.domkat.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.domkat.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.domkat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":20,"href":"https:\/\/www.domkat.net\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/www.domkat.net\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/www.domkat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.domkat.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.domkat.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}