{"id":1130,"date":"2019-08-13T15:44:22","date_gmt":"2019-08-13T22:44:22","guid":{"rendered":"https:\/\/portal.staylinked.com\/sl\/kb\/?post_type=ht_kb&#038;p=1130"},"modified":"2021-01-20T10:50:06","modified_gmt":"2021-01-20T18:50:06","slug":"the-connection-process","status":"publish","type":"ht_kb","link":"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/the-connection-process\/","title":{"rendered":"The Connection Process"},"content":{"rendered":"\n<p>The StayLinked handshake process is an exchange of four packets. <a href=\"https:\/\/portal.staylinked.com\/sl\/kb\/files\/Fig-2.pdf\">See image.<\/a> Host Timeout is displayed when one of these packets is dropped or arrives out of sequence. All of the packets in this transaction use the UDP protocol. Additional information about the packets required by a StayLinked connection is detailed in the <a href=\"..\/knowledge-base\/secure-communication-guide\/\">StayLinked Secure Communication Guide<\/a> available in this link.<\/p>\n\n\n\n<p><strong>Connection Request:<\/strong>\nThe first packet comes from port 3771 of the client device to the server on\nport 3006. When the server receives this packet, it will add the connection to\nthe connections list and create the handler log file if logging is set to protocol\nor higher. The administrator\u2019s connections list is not real-time, so it must be\nrefreshed during the handshake to display connections in process. The\nStayLinkedHandler.IPAddress.log entry will display:<\/p>\n\n\n\n<p><code>01\/25\/2010 08:29:42:549 - StayLinked Handler Starting Session for 10.10.225.150<\/code><\/p>\n\n\n\n<p><strong>Connection Accept:<\/strong> The server will send a response from server port 3006 to the client device on port 3771. The StayLinkedHandler.IPAddress.log entry will display:<\/p>\n\n\n\n<p><code>01\/25\/2010 08:29:42:597 - StayLinked Handler: Attempting to open a socket on IP 192.168.100.12 on a UDP port between 5000 and 6000<\/code><br><code>01\/25\/2010 08:29:42:723 - StayLinked Handler is using socket on IP: 192.168.100.12  Port: 5007<br>01\/25\/2010 08:29:42:723 - Sending Connect Accept to: 10.10.225.150:3771<\/code><\/p>\n\n\n\n<p>When this packet arrives at the client it will display \"Register Port&#8230;\" on the screen. This packet is used to notify the device of the dedicated server port that has been opened for transactions specific to this session.<\/p>\n\n\n\n<p><strong>Registration Request:<\/strong> The gun sends a response from port 3771 to the server on the new dedicated port. When the packet is received by the server, it will record the transaction in the handler log file. The StayLinkedHandler.IPAddress.log entry will display:<\/p>\n\n\n\n<p><code>01\/25\/2010 08:29:43:029 - StayLinked Handler Processing Registration for 10.10.225.150 at 10.10.225.150:3771<\/code><\/p>\n\n\n\n<p>This dedicated port range is configurable in the firewall settings in the server settings section of the administrator. More details on this fixed port range at detailed in the troubleshooting section below.<\/p>\n\n\n\n<p><strong>Registration Accept:<\/strong> The server will send the final confirmation from the dedicated server port to the client port 3771. The StayLinkedHandler.IPAddress.log entry will display:<\/p>\n\n\n\n<p><code>01\/25\/2010 08:29:43:029 - Sending Registration Accept to: 10.10.225.150:3771<\/code><\/p>\n\n\n\n<p>This will appear on the device as a \"Client Connected!\" message.<\/p>\n\n\n\n<p>Once the handshake is complete, the server will send a \u2018Get Device Config\u2019 to the client. The StayLinkedHandler.IPAddress.log entry will display:<\/p>\n\n\n\n<p><code>01\/25\/2010 08:29:43:170 - esp_GetDeviceConfig()<\/code><\/p>\n\n\n\n<p>The client response will include information about the display area, device type, client version, and other details. This string of information is used by the server to determine the device group, telnet host, and other various connection parameters. The StayLinkedHandler.IPAddress.log entry will display:<\/p>\n\n\n\n<p><code>01\/25\/2010 08:29:43:248 - esp_GetDeviceConfig() returns'AB~001~19~000~PDT9090_E5~16~26~09~01~0107~0000~000~0015708E863F<br>~640~6006~1~20100118100852~S~WindowsCE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ~2~01~0~'<\/code><\/p>\n\n\n\n<p>If the server does not get this response within 10 seconds, it will display the error eSP0008 and stat that it could not get the device config.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The StayLinked handshake process is an exchange of four packets. See image. Host Timeout is displayed when one of these packets is dropped or arrives out of sequence. All of the packets in this transaction use the UDP protocol. Additional information about the packets required by a StayLinked connection is&#8230;<\/p>\n","protected":false},"author":7,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[59],"ht-kb-tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The Connection Process &ndash; StayLinked<\/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.staylinked.com\/knowledge-base\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Connection Process &ndash; StayLinked\" \/>\n<meta property=\"og:description\" content=\"The StayLinked handshake process is an exchange of four packets. See image. Host Timeout is displayed when one of these packets is dropped or arrives out of sequence. All of the packets in this transaction use the UDP protocol. Additional information about the packets required by a StayLinked connection is...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/the-connection-process\/\" \/>\n<meta property=\"og:site_name\" content=\"StayLinked\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-20T18:50:06+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/#website\",\"url\":\"https:\/\/portal.staylinked.com\/sl\/kb\/\",\"name\":\"StayLinked Knowledge Base\",\"description\":\"Partner Portal Resources and Support\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/portal.staylinked.com\/sl\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/the-connection-process\/#webpage\",\"url\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/the-connection-process\/\",\"name\":\"The Connection Process &ndash; StayLinked\",\"isPartOf\":{\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/#website\"},\"datePublished\":\"2019-08-13T22:44:22+00:00\",\"dateModified\":\"2021-01-20T18:50:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/the-connection-process\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/the-connection-process\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/the-connection-process\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/portal.staylinked.com\/sl\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"The Connection Process\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb\/1130"}],"collection":[{"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/comments?post=1130"}],"version-history":[{"count":0,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb\/1130\/revisions"}],"wp:attachment":[{"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/media?parent=1130"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=1130"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=1130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}