{"id":1364,"date":"2019-02-08T10:36:07","date_gmt":"2019-02-08T10:36:07","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583738-are-sockets-supported-at-hostinger\/"},"modified":"2019-02-08T10:36:07","modified_gmt":"2019-02-08T10:36:07","slug":"1583738-are-sockets-supported-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583738-are-sockets-supported-at-hostinger\/","title":{"rendered":"Are Sockets Supported at Hostinger?"},"content":{"rendered":"<p class=\"no-margin\">A WebSocket is a communication protocol that allows<b> constant two-way communication <\/b>between a client (such as a web browser) and a server, enabling real-time data exchange. Some of the common uses are:<\/p><ul>\n<li>\n<p class=\"no-margin\"><b>Real-time web applications<\/b> such as live chat, online gaming, financial trading platforms, and collaborative tools<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Live content updates<\/b>, for example, social media notifications, live sports scores, or stock market updates<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\"><b>Interactive and dynamic web experiences<\/b>. For instance, online collaborative editing tools, drawing applications, or virtual classrooms<\/p>\n<\/li>\n<\/ul><p class=\"no-margin\">For security reasons, <b>our Web and Cloud hosting plans<\/b> <b>only allow for outgoing connections<\/b> via WebSocket. That is, you can <b>initiate <\/b>a WebSocket request from your hosting to another server (eg., outside of Hostinger), and upon successful handshake, a dual communication channel is established. You can then send messages to the other server, and the server can respond asynchronously without issues.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">If your application requires <b>incoming connections<\/b> as well as outgoing, you can consider a <b><a href=\"https:\/\/www.hostinger.com\/vps-hosting\" target=\"_blank\" class=\"intercom-content-link\">VPS plan<\/a><\/b>, where you will have maximum configuration flexibility to adapt to your project &#128640; <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>NOTE<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\">It is not allowed for clients to bind to local ports for incoming connections<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Using WebSockets at Hostinger<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[218],"tags":[],"class_list":["post-1364","post","type-post","status-publish","format-standard","hentry","category-supported-technologies-and-functions"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583738-are-sockets-supported-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583738-se-admiten-sockets-en-hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1364"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1364\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}